(self)
| 1440 | |
| 1441 | @unittest.expectedFailure # TODO: RUSTPYTHON; AssertionError: <FakePath '@test_23396_tmp챈'> != '@test_23396_tmp챈' |
| 1442 | def test_with_pathlike_filename(self): |
| 1443 | filename = FakePath(TESTFN) |
| 1444 | with TempFile(filename): |
| 1445 | with lzma.open(filename, "wb") as f: |
| 1446 | f.write(INPUT) |
| 1447 | self.assertEqual(f.name, TESTFN) |
| 1448 | with open(filename, "rb") as f: |
| 1449 | file_data = lzma.decompress(f.read()) |
| 1450 | self.assertEqual(file_data, INPUT) |
| 1451 | with lzma.open(filename, "rb") as f: |
| 1452 | self.assertEqual(f.read(), INPUT) |
| 1453 | self.assertEqual(f.name, TESTFN) |
| 1454 | |
| 1455 | def test_bad_params(self): |
| 1456 | # Test invalid parameter combinations. |
nothing calls this directly
no test coverage detected