Skip to content

Commit

Permalink
make test suit fail
Browse files Browse the repository at this point in the history
  • Loading branch information
blankjul committed Sep 20, 2018
1 parent b4201e9 commit 772d34c
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions tests/test_suite.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,6 @@
suite = unittest.TestSuite()

for t in testmodules:
try:
# If the module defines a suite() function, call it to get the suite.
mod = __import__(t, globals(), locals(), ['suite'])
suitefn = getattr(mod, 'suite')
suite.addTest(suitefn())
except (ImportError, AttributeError):
# else, just load all the tests cases from the module.
suite.addTest(unittest.defaultTestLoader.loadTestsFromName(t))
suite.addTest(unittest.defaultTestLoader.loadTestsFromName(t))

unittest.TextTestRunner().run(suite)

0 comments on commit 772d34c

Please sign in to comment.