summaryrefslogtreecommitdiff
path: root/tests/cache
diff options
context:
space:
mode:
Diffstat (limited to 'tests/cache')
-rw-r--r--tests/cache/tests.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/cache/tests.py b/tests/cache/tests.py
index 3bf39e2476..dd886cd11b 100644
--- a/tests/cache/tests.py
+++ b/tests/cache/tests.py
@@ -1370,7 +1370,7 @@ class FileBasedCacheTests(BaseCacheTests, TestCase):
self.assertEqual(cache.get('foo', 'baz'), 'baz')
def test_get_does_not_ignore_non_enoent_errno_values(self):
- with mock.patch.object(io, 'open', side_effect=IOError):
+ with mock.patch('builtins.open', side_effect=IOError):
with self.assertRaises(IOError):
cache.get('foo')