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