(self)
| 555 | self.assertEqual(values, [chr(0xD8FF), "\\ud8ff"]) |
| 556 | |
| 557 | def test_mktempfile(self): |
| 558 | filename = ip.mktempfile() |
| 559 | # Check that we can open the file again on Windows |
| 560 | with open(filename, "w", encoding="utf-8") as f: |
| 561 | f.write("abc") |
| 562 | |
| 563 | filename = ip.mktempfile(data="blah") |
| 564 | with open(filename, "r", encoding="utf-8") as f: |
| 565 | self.assertEqual(f.read(), "blah") |
| 566 | |
| 567 | def test_new_main_mod(self): |
| 568 | # Smoketest to check that this accepts a unicode module name |
nothing calls this directly
no test coverage detected