summaryrefslogtreecommitdiffstats
path: root/Lib/test/test__xxinterpchannels.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/test/test__xxinterpchannels.py')
-rw-r--r--Lib/test/test__xxinterpchannels.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/test/test__xxinterpchannels.py b/Lib/test/test__xxinterpchannels.py
index 13c8a10..cc2ed78 100644
--- a/Lib/test/test__xxinterpchannels.py
+++ b/Lib/test/test__xxinterpchannels.py
@@ -586,12 +586,12 @@ class ChannelTests(TestBase):
cid = channels.create()
interp = interpreters.create()
+ interpreters.set___main___attrs(interp, dict(cid=cid.send))
out = _run_output(interp, dedent("""
import _xxinterpchannels as _channels
print(cid.end)
_channels.send(cid, b'spam', blocking=False)
- """),
- dict(cid=cid.send))
+ """))
obj = channels.recv(cid)
self.assertEqual(obj, b'spam')