mirror of
https://github.com/python/cpython.git
synced 2025-08-04 17:08:35 +00:00
[3.9] bpo-46425: Fix direct invocation of multiple test modules (GH-30666) (GH-30700)
This commit is contained in:
parent
3b51926ee9
commit
8105dd2411
4 changed files with 5 additions and 7 deletions
|
@ -3,7 +3,6 @@ import contextlib
|
|||
import filecmp
|
||||
import importlib.util
|
||||
import io
|
||||
import itertools
|
||||
import os
|
||||
import pathlib
|
||||
import py_compile
|
||||
|
@ -24,9 +23,8 @@ except ImportError:
|
|||
|
||||
from test import support
|
||||
from test.support import script_helper
|
||||
|
||||
from .test_py_compile import without_source_date_epoch
|
||||
from .test_py_compile import SourceDateEpochTestMeta
|
||||
from test.test_py_compile import without_source_date_epoch
|
||||
from test.test_py_compile import SourceDateEpochTestMeta
|
||||
|
||||
|
||||
def get_pyc(script, opt):
|
||||
|
|
|
@ -7,7 +7,7 @@ be run.
|
|||
|
||||
import distutils.tests
|
||||
import test.support
|
||||
|
||||
import unittest
|
||||
|
||||
def load_tests(*_):
|
||||
# used by unittest
|
||||
|
|
|
@ -170,4 +170,4 @@ class SystemTapOptimizedTests(TraceTests, unittest.TestCase):
|
|||
|
||||
|
||||
if __name__ == '__main__':
|
||||
test_main()
|
||||
unittest.main()
|
||||
|
|
|
@ -6,7 +6,7 @@ import subprocess
|
|||
from test import support
|
||||
import unittest
|
||||
import unittest.test
|
||||
from .test_result import BufferedWriter
|
||||
from unittest.test.test_result import BufferedWriter
|
||||
|
||||
|
||||
class Test_TestProgram(unittest.TestCase):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue