Skip to content

[3.9] bpo-46425: Fix direct invocation of multiple test modules (GH-30666) #30700

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jan 20, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 2 additions & 4 deletions Lib/test/test_compileall.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
import filecmp
import importlib.util
import io
import itertools
import os
import pathlib
import py_compile
Expand All @@ -24,9 +23,8 @@

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):
Expand Down
2 changes: 1 addition & 1 deletion Lib/test/test_distutils.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

import distutils.tests
import test.support

import unittest

def load_tests(*_):
# used by unittest
Expand Down
2 changes: 1 addition & 1 deletion Lib/test/test_dtrace.py
Original file line number Diff line number Diff line change
Expand Up @@ -170,4 +170,4 @@ class SystemTapOptimizedTests(TraceTests, unittest.TestCase):


if __name__ == '__main__':
test_main()
unittest.main()
2 changes: 1 addition & 1 deletion Lib/unittest/test/test_program.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
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):
Expand Down