◐ Shell
clean mode source ↗

[3.8] bpo-37421: test_winconsoleio doesn't leak temp file anymore (GH-14562) by miss-islington · Pull Request #14569 · python/cpython

Expand Up @@ -25,14 +25,12 @@ def test_open_fd(self): self.assertRaisesRegex(ValueError, "negative file descriptor", ConIO, -1)
fd, _ = tempfile.mkstemp() try: with tempfile.TemporaryFile() as tmpfile: fd = tmpfile.fileno() # Windows 10: "Cannot open non-console file" # Earlier: "Cannot open console output buffer for reading" self.assertRaisesRegex(ValueError, "Cannot open (console|non-console file)", ConIO, fd) finally: os.close(fd)
try: f = ConIO(0) Expand Down