mirror of
https://github.com/python/cpython.git
synced 2026-01-04 06:22:20 +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 @@ def testAbles(self):
|
|||
# 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