(self)
| 30 | self.assertIsInstance(self.root, _WritablePath) |
| 31 | |
| 32 | def test_open_w(self): |
| 33 | p = self.root / 'fileA' |
| 34 | with magic_open(p, 'w', encoding='utf-8') as f: |
| 35 | self.assertIsInstance(f, io.TextIOBase) |
| 36 | f.write('this is file A\n') |
| 37 | self.assertEqual(self.ground.readtext(p), 'this is file A\n') |
| 38 | |
| 39 | @unittest.skipIf( |
| 40 | not getattr(sys.flags, 'warn_default_encoding', 0), |
nothing calls this directly
no test coverage detected