summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_os.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/test/test_os.py')
-rw-r--r--Lib/test/test_os.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/Lib/test/test_os.py b/Lib/test/test_os.py
index 9cddb5f..3f26f2f 100644
--- a/Lib/test/test_os.py
+++ b/Lib/test/test_os.py
@@ -62,5 +62,9 @@ class TemporaryFileTests(unittest.TestCase):
self.check_tempfile(os.tmpnam())
+def test_main():
+ run_unittest(TemporaryFileTests)
-run_unittest(TemporaryFileTests)
+
+if __name__ == "__main__":
+ test_main()