(self)
| 797 | encoding="utf-8", closefd=False) |
| 798 | |
| 799 | def test_closefd_attr(self): |
| 800 | with self.open(os_helper.TESTFN, "wb") as f: |
| 801 | f.write(b"egg\n") |
| 802 | with self.open(os_helper.TESTFN, "r", encoding="utf-8") as f: |
| 803 | self.assertEqual(f.buffer.raw.closefd, True) |
| 804 | file = self.open(f.fileno(), "r", encoding="utf-8", closefd=False) |
| 805 | self.assertEqual(file.buffer.raw.closefd, False) |
| 806 | |
| 807 | @unittest.expectedFailure # TODO: RUSTPYTHON; AssertionError: filter ('', ResourceWarning) did not catch any warning |
| 808 | @unittest.skipIf(sys.platform == "win32", "TODO: RUSTPYTHON; cyclic GC not supported, causes file locking") |
nothing calls this directly
no test coverage detected