Skip to content

Warn on missing testdata submodule #122

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
SimonSapin opened this issue Nov 30, 2013 · 0 comments · Fixed by #265
Closed

Warn on missing testdata submodule #122

SimonSapin opened this issue Nov 30, 2013 · 0 comments · Fixed by #265

Comments

@SimonSapin
Copy link
Contributor

Steps to reproduce:

git clone https://github.com/html5lib/html5lib-python.git
cd html5lib-python
tox

The tests fail with error messages like:

FileNotFoundError: [Errno 2] No such file or directory: '…/html5lib-python/html5lib/tests/testdata/encoding/chardet/test_big5.txt'

The reason is that git clone does not clone/checkout submodules by default. The fix is to run git submodule update --init.

When finding html5lib/tests/testdata empty, the test harness should print an appropriate warning with instructions.

blag pushed a commit to blag/html5lib-python that referenced this issue May 21, 2014
…tests/testdata/encoding/chardet/test_big5.txt from git
gsnedders added a commit to gsnedders/html5lib-python that referenced this issue Jun 7, 2016
gsnedders added a commit to gsnedders/html5lib-python that referenced this issue Jun 8, 2016
gsnedders added a commit to gsnedders/html5lib-python that referenced this issue Jun 27, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants