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

Method testOpenPathLikeFilename

Lib/test/test_bz2.py:734–741  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

732
733 @unittest.expectedFailure # TODO: RUSTPYTHON; AssertionError: <FakePath 'Z:\\TEMP\\tmphoipjcen'> != 'Z:\\TEMP\\tmphoipjcen'
734 def testOpenPathLikeFilename(self):
735 filename = FakePath(self.filename)
736 with BZ2File(filename, "wb") as f:
737 f.write(self.DATA)
738 self.assertEqual(f.name, self.filename)
739 with BZ2File(filename, "rb") as f:
740 self.assertEqual(f.read(), self.DATA)
741 self.assertEqual(f.name, self.filename)
742
743 def testDecompressLimited(self):
744 """Decompressed data buffering should be limited"""

Callers

nothing calls this directly

Calls 5

FakePathClass · 0.90
BZ2FileClass · 0.90
writeMethod · 0.45
assertEqualMethod · 0.45
readMethod · 0.45

Tested by

no test coverage detected