summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_copy_reg.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/test/test_copy_reg.py')
-rw-r--r--Lib/test/test_copy_reg.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/Lib/test/test_copy_reg.py b/Lib/test/test_copy_reg.py
index 51ec60b..0f5c96f 100644
--- a/Lib/test/test_copy_reg.py
+++ b/Lib/test/test_copy_reg.py
@@ -22,4 +22,9 @@ class CopyRegTestCase(unittest.TestCase):
type(1), int, "not a callable")
-test_support.run_unittest(CopyRegTestCase)
+def test_main():
+ test_support.run_unittest(CopyRegTestCase)
+
+
+if __name__ == "__main__":
+ test_main()