summaryrefslogtreecommitdiffstats
path: root/Lib/distutils/tests/__init__.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/distutils/tests/__init__.py')
-rw-r--r--Lib/distutils/tests/__init__.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/Lib/distutils/tests/__init__.py b/Lib/distutils/tests/__init__.py
index 7bdb912..1b939cb 100644
--- a/Lib/distutils/tests/__init__.py
+++ b/Lib/distutils/tests/__init__.py
@@ -15,9 +15,10 @@ by import rather than matching pre-defined names.
import os
import sys
import unittest
+from test.support import run_unittest
-here = os.path.dirname(__file__)
+here = os.path.dirname(__file__) or os.curdir
def test_suite():
@@ -32,4 +33,4 @@ def test_suite():
if __name__ == "__main__":
- unittest.main(defaultTest="test_suite")
+ run_unittest(test_suite())