Show More
@@ -18,7 +18,7 import os | |||
|
18 | 18 | import shutil |
|
19 | 19 | import sys |
|
20 | 20 | import tempfile |
|
21 |
from contextlib import contextmanager |
|
|
21 | from contextlib import contextmanager | |
|
22 | 22 | |
|
23 | 23 | from os.path import join, abspath, split |
|
24 | 24 | |
@@ -583,8 +583,9 class TestLinkOrCopy(object): | |||
|
583 | 583 | "%r and %r do not reference the same indoes" %(a, b)) |
|
584 | 584 | |
|
585 | 585 | def assert_content_equal(self, a, b): |
|
586 |
with |
|
|
587 | nt.assert_equals(a_f.read(), b_f.read()) | |
|
586 | with open(a) as a_f: | |
|
587 | with open(b) as b_f: | |
|
588 | nt.assert_equals(a_f.read(), b_f.read()) | |
|
588 | 589 | |
|
589 | 590 | @skip_win32 |
|
590 | 591 | def test_link_successful(self): |
General Comments 0
You need to be logged in to leave comments.
Login now