summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_fnmatch.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/test/test_fnmatch.py')
-rw-r--r--Lib/test/test_fnmatch.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/Lib/test/test_fnmatch.py b/Lib/test/test_fnmatch.py
index 9f08926..0bd7d6a 100644
--- a/Lib/test/test_fnmatch.py
+++ b/Lib/test/test_fnmatch.py
@@ -38,4 +38,9 @@ class FnmatchTestCase(unittest.TestCase):
check('\\', r'[!\]', 0)
-test_support.run_unittest(FnmatchTestCase)
+def test_main():
+ test_support.run_unittest(FnmatchTestCase)
+
+
+if __name__ == "__main__":
+ test_main()