@@ -1171,20 +1171,20 @@ def test_missing_line_ending(self) -> None:
1171
1171
# https://github.com/nedbat/coveragepy/issues/293
1172
1172
1173
1173
self .make_file ("normal.py" , """\
1174
- out, err = subprocess.Popen (
1175
- [sys.executable, '-c', ' pass' ],
1176
- stdout=subprocess.PIPE ,
1177
- stderr=subprocess.PIPE).communicate ()
1174
+ out, err = some_module.some_function (
1175
+ ["my data", "-c", " pass" ],
1176
+ arg1=some_module.NAME ,
1177
+ arg2=some_module.OTHER_NAME).function ()
1178
1178
""" )
1179
1179
1180
1180
parser = self .parse_file ("normal.py" )
1181
1181
assert parser .statements == {1 }
1182
1182
1183
1183
self .make_file ("abrupt.py" , """\
1184
- out, err = subprocess.Popen (
1185
- [sys.executable, '-c', ' pass' ],
1186
- stdout=subprocess.PIPE ,
1187
- stderr=subprocess.PIPE).communicate ()""" ) # no final newline.
1184
+ out, err = some_module.some_function (
1185
+ ["my data", "-c", " pass" ],
1186
+ arg1=some_module.NAME ,
1187
+ arg2=some_module.OTHER_NAME).function ()""" ) # no final newline.
1188
1188
1189
1189
# Double-check that some test helper wasn't being helpful.
1190
1190
with open ("abrupt.py" , encoding = "utf-8" ) as f :
0 commit comments