File tree Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change 3939 # this issue; although that doesn't alleviate the issue entirely, and the fix
4040 # needs to happen in the cclib code.
4141 try :
42+ from test_data import all_modules
43+ from test_data import all_parsers
4244 from test_data import parser_names
4345 from test_data import DataSuite
46+ import inspect
47+ ds_args = inspect .getargspec (DataSuite .__init__ ).args
4448 thispath = os .path .dirname (os .path .realpath (__file__ ))
4549 logpath = thispath + "/coverage.tests.log"
4650 try :
4953 sys .stdout = flog
5054 alltests = {}
5155 for p in parser_names :
52- suite = DataSuite (argv = [p ], stream = flog )
56+ # newer versions, changed in rev 17b5b263
57+ if 'parsers' in ds_args :
58+ suite = DataSuite (parsers = {p : all_parsers [p ]}, modules = all_modules , stream = flog )
59+ else :
60+ assert 'argv' in ds_args
61+ suite = DataSuite (argv = [p ], stream = flog )
5362 suite .testall ()
5463 alltests [p ] = [{'data' : t .data } for t in suite .alltests ]
5564 sys .stdout = stdout_backup
You can’t perform that action at this time.
0 commit comments