]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
The 2.1 regrest.py doesn't have the test_main() feature yet, so always
authorGuido van Rossum <guido@python.org>
Fri, 19 Oct 2001 16:05:55 +0000 (16:05 +0000)
committerGuido van Rossum <guido@python.org>
Fri, 19 Oct 2001 16:05:55 +0000 (16:05 +0000)
call test_main() at the end.

Lib/test/test_profile.py

index 6ff5811817e11da42d5850072579132385dcf1b0..c28bf0aae0962b4b0739f691d33e51a03c89c2db 100644 (file)
@@ -82,5 +82,4 @@ class C:
         ticks += 1
         raise AttributeError
 
-if __name__ == "__main__":
-    test_main()
+test_main()