(self)
| 1199 | self.assertEqual(f.read(), "foobar") |
| 1200 | |
| 1201 | def test_newline(self): |
| 1202 | # Test with explicit newline (universal newline mode disabled). |
| 1203 | text = self.TEXT.decode("ascii") |
| 1204 | with self.open(self.filename, "wt", encoding="utf-8", newline="\n") as f: |
| 1205 | f.write(text) |
| 1206 | with self.open(self.filename, "rt", encoding="utf-8", newline="\r") as f: |
| 1207 | self.assertEqual(f.readlines(), [text]) |
| 1208 | |
| 1209 | |
| 1210 | def tearDownModule(): |
nothing calls this directly
no test coverage detected