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

Method test_same_thing

Lib/test/test_tempfile.py:591–599  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

589 file.write(b"blat")
590
591 def test_same_thing(self):
592 # gettempdir always returns the same object
593 a = tempfile.gettempdir()
594 b = tempfile.gettempdir()
595 c = tempfile.gettempdirb()
596
597 self.assertTrue(a is b)
598 self.assertNotEqual(type(a), type(c))
599 self.assertEqual(a, os.fsdecode(c))
600
601 def test_case_sensitive(self):
602 # gettempdir should not flatten its case

Callers

nothing calls this directly

Calls 4

assertTrueMethod · 0.80
assertNotEqualMethod · 0.80
fsdecodeMethod · 0.80
assertEqualMethod · 0.45

Tested by

no test coverage detected