We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 98a0cea commit 738444fCopy full SHA for 738444f
tests/test_process.py
@@ -1393,9 +1393,9 @@ def make_main_and_sub(self) -> None:
1393
self.make_file(
1394
"sub.py",
1395
"""\
1396
- f = open("out.txt", "w", encoding="utf-8")
1397
- f.write("Hello, world!\\n")
1398
- f.close()
+ with open("out.txt", "w", encoding="utf-8") as f:
+ f.write("Hello, world!\\n")
+ a = 3
1399
""",
1400
)
1401
@@ -1763,9 +1763,9 @@ def path(basename: str) -> str:
1763
1764
path("sub.py"),
1765
1766
1767
- f.write("Hello, world!")
1768
+ f.write("Hello, world!")
1769
1770
1771
0 commit comments