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 b81d291 commit 8fe5614Copy full SHA for 8fe5614
Lib/test/test_popen.py
@@ -58,16 +58,20 @@ def test_contextmanager(self):
58
with os.popen("echo hello") as f:
59
self.assertEqual(f.read(), "hello\n")
60
self.assertFalse(f.closed)
61
+ self.assertTrue(f.closed)
62
63
def test_iterating(self):
64
65
self.assertEqual(list(f), ["hello\n"])
66
67
68
69
def test_keywords(self):
70
with os.popen(cmd="echo hello", mode="r", buffering=-1) as f:
71
72
73
74
+
75
76
if __name__ == "__main__":
77
unittest.main()
0 commit comments