|
@@ -146,7 +146,7 @@ def main(tests, verbose=0, color=True):
|
|
|
# Create the text runner and execute the tests.
|
|
# Create the text runner and execute the tests.
|
|
|
runner = TextTestRunner(verbosity=verbose, color=color)
|
|
runner = TextTestRunner(verbosity=verbose, color=color)
|
|
|
suite = unittest.TestSuite(testcases)
|
|
suite = unittest.TestSuite(testcases)
|
|
|
- suite.filename = testfile
|
|
|
|
|
|
|
+ suite.filename = testfile if tests else None
|
|
|
|
|
|
|
|
result = runner.run(suite)
|
|
result = runner.run(suite)
|
|
|
|
|
|