We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5f01232 commit b4cf82bCopy full SHA for b4cf82b
tests/run-tests.py
@@ -1004,6 +1004,16 @@ def run_one_test(test_file):
1004
1005
test_count.increment()
1006
1007
+ # Print a note if this looks like it might have been a misfired unittest
1008
+ if not uses_unittest and not test_passed:
1009
+ with open(test_file, "r") as f:
1010
+ if any(re.match("^import.+unittest", l) for l in f.readlines()):
1011
+ print(
1012
+ "NOTE: {} may be a unittest that doesn't run unittest.main()".format(
1013
+ test_file
1014
+ )
1015
1016
+
1017
if pyb:
1018
num_threads = 1
1019
0 commit comments