summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_crashers.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/test/test_crashers.py')
-rw-r--r--Lib/test/test_crashers.py7
1 files changed, 3 insertions, 4 deletions
diff --git a/Lib/test/test_crashers.py b/Lib/test/test_crashers.py
index 336ccbe..58dfd00 100644
--- a/Lib/test/test_crashers.py
+++ b/Lib/test/test_crashers.py
@@ -8,7 +8,7 @@ import unittest
import glob
import os.path
import test.support
-from test.script_helper import assert_python_failure
+from test.support.script_helper import assert_python_failure
CRASHER_DIR = os.path.join(os.path.dirname(__file__), "crashers")
CRASHER_FILES = os.path.join(CRASHER_DIR, "*.py")
@@ -30,9 +30,8 @@ class CrasherTest(unittest.TestCase):
assert_python_failure(fname)
-def test_main():
- test.support.run_unittest(CrasherTest)
+def tearDownModule():
test.support.reap_children()
if __name__ == "__main__":
- test_main()
+ unittest.main()