mirror of
https://github.com/python/cpython.git
synced 2025-07-24 03:35:53 +00:00
Bump Ruff to 0.6.7 (#124384)
This commit is contained in:
parent
6425443e1d
commit
67aa68f1b4
8 changed files with 11 additions and 14 deletions
|
@ -639,11 +639,9 @@ class IOTest(unittest.TestCase):
|
|||
|
||||
def test_with_open(self):
|
||||
for bufsize in (0, 100):
|
||||
f = None
|
||||
with self.open(os_helper.TESTFN, "wb", bufsize) as f:
|
||||
f.write(b"xxx")
|
||||
self.assertEqual(f.closed, True)
|
||||
f = None
|
||||
try:
|
||||
with self.open(os_helper.TESTFN, "wb", bufsize) as f:
|
||||
1/0
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue