MCPcopy Index your code
hub / github.com/python/cpython / test_no_name_argument

Method test_no_name_argument

Lib/test/test_tarfile.py:555–560  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

553 is_stream = False
554
555 def test_no_name_argument(self):
556 with open(self.tarname, "rb") as fobj:
557 self.assertIsInstance(fobj.name, str)
558 with tarfile.open(fileobj=fobj, mode=self.mode) as tar:
559 self.assertIsInstance(tar.name, str)
560 self.assertEqual(tar.name, os.path.abspath(fobj.name))
561
562 def test_no_name_attribute(self):
563 with open(self.tarname, "rb") as fobj:

Callers

nothing calls this directly

Calls 5

assertIsInstanceMethod · 0.80
openFunction · 0.50
openMethod · 0.45
assertEqualMethod · 0.45
abspathMethod · 0.45

Tested by

no test coverage detected