We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3cc85c6 commit 31df298Copy full SHA for 31df298
html5lib/tests/support.py
@@ -3,17 +3,6 @@
3
import glob
4
5
base_path = os.path.split(__file__)[0]
6
-try:
7
- import html5lib
8
-except ImportError:
9
- #development
10
- sys.path.insert(0, os.path.abspath(os.path.join(base_path,
11
- os.path.pardir,
12
- os.path.pardir)))
13
14
-
15
-from html5lib import html5parser, treebuilders
16
17
18
if os.path.exists(os.path.join(base_path, 'testdata')):
19
#release
@@ -25,7 +14,13 @@
25
os.path.pardir, os.path.pardir,
26
os.path.pardir, 'testdata'))
27
assert os.path.exists(test_dir), "Test data not found"
+ #import the development html5lib
+ sys.path.insert(0, os.path.abspath(os.path.join(base_path,
+ os.path.pardir,
20
+ os.path.pardir)))
28
21
22
+import html5lib
23
+from html5lib import html5parser, treebuilders
29
24
del base_path
30
31
import simplejson
0 commit comments