File tree Expand file tree Collapse file tree 3 files changed +8
-14
lines changed
Expand file tree Collapse file tree 3 files changed +8
-14
lines changed Original file line number Diff line number Diff line change 1+ [submodule "testdata "]
2+ path = html5lib/tests/testdata
3+ url = git://github.com/html5lib/html5lib-tests.git
Original file line number Diff line number Diff line change 77
88base_path = os .path .split (__file__ )[0 ]
99
10- if os .path .exists (os .path .join (base_path , 'testdata' )):
11- #release
12- test_dir = os .path .join (base_path , 'testdata' )
13- else :
14- #development
15- test_dir = os .path .abspath (
16- os .path .join (base_path ,
17- os .path .pardir , os .path .pardir ,
18- os .path .pardir , 'testdata' ))
19- assert os .path .exists (test_dir ), "Test data not found"
20- #import the development html5lib
21- sys .path .insert (0 , os .path .abspath (os .path .join (base_path ,
22- os .path .pardir ,
23- os .path .pardir )))
10+ test_dir = os .path .join (base_path , 'testdata' )
11+ sys .path .insert (0 , os .path .abspath (os .path .join (base_path ,
12+ os .path .pardir ,
13+ os .path .pardir )))
2414
2515import html5lib
2616from html5lib import html5parser , treebuilders
Submodule testdata added at
e65afbd
You can’t perform that action at this time.
0 commit comments