Skip to content

Commit

Permalink
Restored ability to run tests individually. Fixes openworm#190.
Browse files Browse the repository at this point in the history
  • Loading branch information
Gopal Sarma committed Jul 9, 2015
1 parent 24bcbcf commit 030c59e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/test.py
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ def runTests(suite):

suite = unittest.TestSuite()
if len(args) == 1:
suite.addTests(filter(lambda x: x.id().startswith("__main__."+args[0]), all_tests_flattened))
suite.addTests(filter(lambda x: x.id().startswith(args[0]), all_tests_flattened))
else:
suite.addTests(all_tests)

Expand Down

0 comments on commit 030c59e

Please sign in to comment.