mirror of
https://github.com/python/cpython.git
synced 2025-08-04 17:08:35 +00:00
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.
This commit is contained in:
parent
939614c48c
commit
ac28b796d8
8 changed files with 13 additions and 7 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue