|
27 | 27 | from unittest import mock |
28 | 28 | import _imp |
29 | 29 |
|
30 | | -from test.support import os_helper |
31 | 30 | from test.support import ( |
32 | | - STDLIB_DIR, swap_attr, swap_item, cpython_only, is_apple_mobile, is_emscripten, |
33 | | - is_wasi, run_in_subinterp, run_in_subinterp_with_config, Py_TRACE_REFS, |
34 | | - requires_gil_enabled, Py_GIL_DISABLED, no_rerun) |
| 31 | + STDLIB_DIR, |
| 32 | + Py_GIL_DISABLED, |
| 33 | + Py_TRACE_REFS, |
| 34 | + cpython_only, |
| 35 | + force_not_colorized_test_class, |
| 36 | + is_apple_mobile, |
| 37 | + is_emscripten, |
| 38 | + is_wasi, |
| 39 | + no_rerun, |
| 40 | + os_helper, |
| 41 | + requires_gil_enabled, |
| 42 | + run_in_subinterp, |
| 43 | + run_in_subinterp_with_config, |
| 44 | + script_helper, |
| 45 | + swap_attr, |
| 46 | + swap_item, |
| 47 | + threading_helper, |
| 48 | +) |
35 | 49 | from test.support.import_helper import ( |
36 | 50 | forget, make_legacy_pyc, unlink, unload, ready_to_import, |
37 | 51 | DirsOnSysPath, CleanImport, import_module) |
38 | 52 | from test.support.os_helper import ( |
39 | 53 | TESTFN, rmtree, temp_umask, TESTFN_UNENCODABLE) |
40 | | -from test.support import script_helper |
41 | | -from test.support import threading_helper |
42 | 54 | from test.test_importlib.util import uncache |
43 | 55 | from types import ModuleType |
44 | 56 | try: |
@@ -333,6 +345,7 @@ def _from_subinterp(cls, name, interpid, pipe, script_kwargs): |
333 | 345 | return cls.parse(text.decode()) |
334 | 346 |
|
335 | 347 |
|
| 348 | +@force_not_colorized_test_class |
336 | 349 | class ImportTests(unittest.TestCase): |
337 | 350 |
|
338 | 351 | def setUp(self): |
|
0 commit comments