File tree Expand file tree Collapse file tree 1 file changed +6
-7
lines changed
Lib/test/test_interpreters Expand file tree Collapse file tree 1 file changed +6
-7
lines changed Original file line number Diff line number Diff line change @@ -120,13 +120,12 @@ def test_equality(self):
120120 self .assertNotEqual (ch1 , ch2 )
121121
122122 def test_pickle (self ):
123- recv , send = channels .create ()
124- for ch in [recv , send ]:
125- for protocol in range (pickle .HIGHEST_PROTOCOL + 1 ):
126- with self .subTest (ch = ch , protocol = protocol ):
127- data = pickle .dumps (ch , protocol )
128- unpickled = pickle .loads (data )
129- self .assertEqual (unpickled , ch )
123+ ch , _ = channels .create ()
124+ for protocol in range (pickle .HIGHEST_PROTOCOL + 1 ):
125+ with self .subTest (protocol = protocol ):
126+ data = pickle .dumps (ch , protocol )
127+ unpickled = pickle .loads (data )
128+ self .assertEqual (unpickled , ch )
130129
131130
132131class TestSendChannelAttrs (TestBase ):
You can’t perform that action at this time.
0 commit comments