mirror of
https://github.com/python/cpython.git
synced 2025-08-04 17:08:35 +00:00
Fix ResourceWarning about unclosed file
This commit is contained in:
parent
b2fda23922
commit
3ddcaafbbf
1 changed files with 0 additions and 1 deletions
|
@ -260,7 +260,6 @@ class OtherFileTests(unittest.TestCase):
|
|||
# OS'es that don't support /dev/tty.
|
||||
pass
|
||||
else:
|
||||
f = _FileIO("/dev/tty", "a")
|
||||
self.assertEquals(f.readable(), False)
|
||||
self.assertEquals(f.writable(), True)
|
||||
if sys.platform != "darwin" and \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue