(self)
| 478 | self.assertEqual(src.linesread, []) |
| 479 | |
| 480 | def test_pathlike_file(self): |
| 481 | t1 = FakePath(self.writeTmp("Path-like file.")) |
| 482 | with FileInput(t1, encoding="utf-8") as fi: |
| 483 | line = fi.readline() |
| 484 | self.assertEqual(line, 'Path-like file.') |
| 485 | self.assertEqual(fi.lineno(), 1) |
| 486 | self.assertEqual(fi.filelineno(), 1) |
| 487 | self.assertEqual(fi.filename(), os.fspath(t1)) |
| 488 | |
| 489 | def test_pathlike_file_inplace(self): |
| 490 | t1 = FakePath(self.writeTmp('Path-like file.')) |
nothing calls this directly
no test coverage detected