Skip to content
This repository has been archived by the owner on Jun 17, 2020. It is now read-only.

Commit

Permalink
py3k fix
Browse files Browse the repository at this point in the history
  • Loading branch information
alex committed Nov 9, 2013
1 parent e1a8540 commit 5849481
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test_zero_buffer.py
Original file line number Diff line number Diff line change
Expand Up @@ -337,7 +337,7 @@ def test_write_to(self, buf, tmpdir):
with tmpdir.join("t.txt").open("wb") as f:
res = view.write_to(f.fileno())
assert res == 4
assert tmpdir.join("t.txt").read() == b"abcd"
assert tmpdir.join("t.txt").read("rb") == b"abcd"

def test_write_to_badfd(self, buf):
buf.add_bytes(b"abcd")
Expand All @@ -351,7 +351,7 @@ def test_write_to_empty_bytes(self, buf, tmpdir):
with tmpdir.join("t.txt").open("wb") as f:
res = view.write_to(f.fileno())
assert res == 0
assert tmpdir.join("t.txt").read() == b""
assert tmpdir.join("t.txt").read("rb") == b""



Expand Down

0 comments on commit 5849481

Please sign in to comment.