8000 Fix a test. · python/cpython@491a642 · GitHub
[go: up one dir, main page]

Skip to content

Commit 491a642

Browse files
Fix a test.
1 parent eb7f7eb commit 491a642

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Lib/test/test_types.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2516,12 +2516,13 @@ def setUpClass(cls):
25162516
import interpreters
25172517
except ModuleNotFoundError:
25182518
raise unittest.SkipTest('subinterpreters required')
2519-
import test.support.channels # noqa: F401
2519+
7136 from test.support import channels # noqa: F401
2520+
cls.create_channel = staticmethod(channels.create)
25202521

25212522
@cpython_only
25222523
@no_rerun('channels (and queues) might have a refleak; see gh-122199')
25232524
def test_static_types_inherited_slots(self):
2524-
rch, sch = test.support.channels.create()
2525+
rch, sch = self.create_channel()
25252526

25262527
script = textwrap.dedent("""
25272528
import test.support

0 commit comments

Comments
 (0)
0