MCPcopy Index your code
hub / github.com/RustPython/RustPython / test_init_with_PathLike_filename

Method test_init_with_PathLike_filename

Lib/test/test_lzma.py:559–570  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

557
558 @unittest.expectedFailure # TODO: RUSTPYTHON; AssertionError: <FakePath '@test_23396_tmp챈'> != '@test_23396_tmp챈'
559 def test_init_with_PathLike_filename(self):
560 filename = FakePath(TESTFN)
561 with TempFile(filename, COMPRESSED_XZ):
562 with LZMAFile(filename) as f:
563 self.assertEqual(f.read(), INPUT)
564 self.assertEqual(f.name, TESTFN)
565 with LZMAFile(filename, "a") as f:
566 f.write(INPUT)
567 self.assertEqual(f.name, TESTFN)
568 with LZMAFile(filename) as f:
569 self.assertEqual(f.read(), INPUT * 2)
570 self.assertEqual(f.name, TESTFN)
571
572 def test_init_with_filename(self):
573 with TempFile(TESTFN, COMPRESSED_XZ):

Callers

nothing calls this directly

Calls 6

FakePathClass · 0.90
LZMAFileClass · 0.90
TempFileClass · 0.70
assertEqualMethod · 0.45
readMethod · 0.45
writeMethod · 0.45

Tested by

no test coverage detected