(self, tmpdir)
| 1542 | |
| 1543 | @pytest.mark.xfail(reason=class="st">"changing read/write might break existing usages") |
| 1544 | def test_read_write(self, tmpdir): |
| 1545 | x = tmpdir.join(class="st">"hello") |
| 1546 | part = class="st">"hällo" |
| 1547 | with ignore_encoding_warning(): |
| 1548 | x.write(part) |
| 1549 | assert x.read() == part |
| 1550 | x.write(part.encode(sys.getdefaultencoding())) |
| 1551 | assert x.read() == part.encode(sys.getdefaultencoding()) |
| 1552 | |
| 1553 | |
| 1554 | class TestBinaryAndTextMethods: |
nothing calls this directly
no test coverage detected