Skip to content

Commit d2a16d5

Browse files
committed
refactor: don't use distracting real names where fake names will do
1 parent dd0b354 commit d2a16d5

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

tests/test_parser.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1171,20 +1171,20 @@ def test_missing_line_ending(self) -> None:
11711171
# https://github.com/nedbat/coveragepy/issues/293
11721172

11731173
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()
11781178
""")
11791179

11801180
parser = self.parse_file("normal.py")
11811181
assert parser.statements == {1}
11821182

11831183
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.
11881188

11891189
# Double-check that some test helper wasn't being helpful.
11901190
with open("abrupt.py", encoding="utf-8") as f:

0 commit comments

Comments
 (0)