(self)
| 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 |
nothing calls this directly
no test coverage detected