File tree 3 files changed +5
-109
lines changed
3 files changed +5
-109
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change 5
5
import unittest
6
6
import new
7
7
8
- # XXX Allow us to import the sibling module
9
- os .chdir (os .path .split (os .path .abspath (__file__ ))[0 ])
10
- sys .path .insert (0 , os .path .abspath (os .path .join (os .pardir , "src" )))
11
-
12
- import parser
8
+ from html5lib import parser
13
9
#Run tests over all treebuilders
14
10
#XXX - it would be nice to automate finding all treebuilders or to allow running just one
15
- from treebuilders import simpletree , etree
11
+ from html5lib . treebuilders import simpletree , etree
16
12
17
13
treetypes = {"simpletree" :simpletree .TreeBuilder ,
18
14
"ElementTree" :etree .TreeBuilder }
Original file line number Diff line number Diff line change 7
7
8
8
import simplejson
9
9
10
- #Allow us to import the parent module
11
- os .chdir (os .path .split (os .path .abspath (__file__ ))[0 ])
12
- sys .path .insert (0 , os .path .abspath (os .path .join (os .pardir , "src" )))
13
-
14
- from tokenizer import HTMLTokenizer
15
- import constants
10
+ import html5lib
11
+ from html5lib .tokenizer import HTMLTokenizer
12
+ from html5lib import constants
16
13
17
14
class TokenizerTestParser (object ):
18
15
def __init__ (self , contentModelFlag , lastStartTag = None ):
You can’t perform that action at this time.
0 commit comments