Skip to content

Commit 78ad403

Browse files
committed
py27 has different method
1 parent 3c3c45c commit 78ad403

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

fs/test.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1061,7 +1061,8 @@ def test_remove(self):
10611061
self.fs.makedirs("foo/bar/baz/")
10621062

10631063
error_msg = "resource 'foo/bar/egg/test.txt' not found"
1064-
with self.assertRaisesRegex(errors.ResourceNotFound, error_msg):
1064+
assertRaisesRegex = getattr(self, "assertRaisesRegex", self.assertRaisesRegexp)
1065+
with assertRaisesRegex(errors.ResourceNotFound, error_msg):
10651066
self.fs.remove("foo/bar/egg/test.txt")
10661067

10671068
def test_removedir(self):

0 commit comments

Comments
 (0)