We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3c3c45c commit 78ad403Copy full SHA for 78ad403
fs/test.py
@@ -1061,7 +1061,8 @@ def test_remove(self):
1061
self.fs.makedirs("foo/bar/baz/")
1062
1063
error_msg = "resource 'foo/bar/egg/test.txt' not found"
1064
- with self.assertRaisesRegex(errors.ResourceNotFound, error_msg):
+ assertRaisesRegex = getattr(self, "assertRaisesRegex", self.assertRaisesRegexp)
1065
+ with assertRaisesRegex(errors.ResourceNotFound, error_msg):
1066
self.fs.remove("foo/bar/egg/test.txt")
1067
1068
def test_removedir(self):
0 commit comments