Skip to content

Commit 8fe5614

Browse files
committed
Address review
1 parent b81d291 commit 8fe5614

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Lib/test/test_popen.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,16 +58,20 @@ def test_contextmanager(self):
5858
with os.popen("echo hello") as f:
5959
self.assertEqual(f.read(), "hello\n")
6060
self.assertFalse(f.closed)
61+
self.assertTrue(f.closed)
6162

6263
def test_iterating(self):
6364
with os.popen("echo hello") as f:
6465
self.assertEqual(list(f), ["hello\n"])
6566
self.assertFalse(f.closed)
67+
self.assertTrue(f.closed)
6668

6769
def test_keywords(self):
6870
with os.popen(cmd="echo hello", mode="r", buffering=-1) as f:
6971
self.assertEqual(f.read(), "hello\n")
7072
self.assertFalse(f.closed)
73+
self.assertTrue(f.closed)
74+
7175

7276
if __name__ == "__main__":
7377
unittest.main()

0 commit comments

Comments
 (0)