Skip to content
Snippets Groups Projects
Commit 8f0cd0a2 authored by nimrod's avatar nimrod
Browse files

Fix readfile tests on Python2.

On Python2, write doesn't return anything. Discard the output for
compatabilities sake.
parent b8266622
No related branches found
No related tags found
No related merge requests found
Pipeline #2056 passed
...@@ -49,8 +49,7 @@ def readfile(path): ...@@ -49,8 +49,7 @@ def readfile(path):
'' ''
>>> foo = "foo" >>> foo = "foo"
>>> with open("/tmp/foo", "w") as f: >>> with open("/tmp/foo", "w") as f:
... f.write(foo) ... _ = f.write(foo)
3
>>> foo == readfile("/tmp/foo") >>> foo == readfile("/tmp/foo")
True True
""" """
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment