File tree 1 file changed +11
-9
lines changed
1 file changed +11
-9
lines changed Original file line number Diff line number Diff line change @@ -161,21 +161,23 @@ def test_pause_unpause():
161
161
162
162
163
163
@pytest .mark .parametrize ('st' , [
164
- ( '' ,) ,
165
- ( 'foo' ,) ,
166
- ( 'foo&bar' ,) ,
167
- ( 'foo$?-/_"\\ ' ,) ,
168
- ( '^&<>|' ,) ,
169
- ( '()<>' ,) ,
170
- ( 'this /?' ,) ,
164
+ '' ,
165
+ 'foo' ,
166
+ 'foo&bar' ,
167
+ 'foo$?-/_"\\ ' ,
168
+ '^&<>|' ,
169
+ '()<>' ,
170
+ 'this /?' ,
171
171
])
172
172
def test_argv_roundtrip (st ):
173
- # This is for the benefit of Windows and other platforms that don't actually pass processes a paramaterized argv
173
+ # This is for the benefit of Windows and other platforms that don't actually
174
+ # pass processes a paramaterized argv
174
175
pi = Pipe ()
175
176
proc = Process (runpy (r'import sys; print(sys.argv[1])' ) + [st ], stdout = pi .side_in )
176
177
proc .start ()
177
178
data = pi .side_out .readline ()
178
179
# Pipe is closed but process might still be live
179
180
proc .join () # Commenting this out causes data to be None?
180
181
assert proc .return_code == 0
181
- assert data .rstrip ('\r \n ' ) == st
182
+ assert data .rstrip (b'\r \n ' ) == st .encode ('ascii' )
183
+ # We're not testing 8-bit clean, but special chars, which are all ascii
You can’t perform that action at this time.
0 commit comments