summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_pyclbr.py
diff options
context:
space:
mode:
authorZachary Ware <zachary.ware@gmail.com>2015-12-05 05:32:23 (GMT)
committerZachary Ware <zachary.ware@gmail.com>2015-12-05 05:32:23 (GMT)
commitac28b796d80f869f39662491446145106960a886 (patch)
tree1877f8c5cd3a304a1890e81034555987fd9afbc1 /Lib/test/test_pyclbr.py
parent939614c48c3b0b5adeb408294a032118411ab987 (diff)
downloadcpython-ac28b796d80f869f39662491446145106960a886.zip
cpython-ac28b796d80f869f39662491446145106960a886.tar.gz
cpython-ac28b796d80f869f39662491446145106960a886.tar.bz2
Issue #25795: Fix several tests to run independently.
These were broken in 3aec776fc796 when they were converted away from using support.run_unittest(). Oops :) Initial patch by Felippe da Motta Raposo.
Diffstat (limited to 'Lib/test/test_pyclbr.py')
-rw-r--r--Lib/test/test_pyclbr.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/test/test_pyclbr.py b/Lib/test/test_pyclbr.py
index cab430b..6ffbbbd 100644
--- a/Lib/test/test_pyclbr.py
+++ b/Lib/test/test_pyclbr.py
@@ -5,7 +5,7 @@
import sys
from types import FunctionType, MethodType, BuiltinFunctionType
import pyclbr
-from unittest import TestCase
+from unittest import TestCase, main as unittest_main
StaticMethodType = type(staticmethod(lambda: None))
ClassMethodType = type(classmethod(lambda c: None))
@@ -173,4 +173,4 @@ class PyclbrTest(TestCase):
if __name__ == "__main__":
- unittest.main()
+ unittest_main()