summaryrefslogtreecommitdiff
path: root/tests/cache
diff options
context:
space:
mode:
authorTim Graham <timograham@gmail.com>2017-01-25 10:13:08 -0500
committerGitHub <noreply@github.com>2017-01-25 10:13:08 -0500
commit632c4ffd9cb1da273303bcd8005fff216506c795 (patch)
tree4e475379e7e210a513789513021720b8b4808f7c /tests/cache
parent3f0c4fe18fe9850bb2f56be138012add4b54873d (diff)
Refs #23919 -- Replaced errno checking with PEP 3151 exceptions.
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 79a5120f71..7c61837ab0 100644
--- a/tests/cache/tests.py
+++ b/tests/cache/tests.py
@@ -1360,7 +1360,7 @@ class FileBasedCacheTests(BaseCacheTests, TestCase):
# Returns the default instead of erroring.
self.assertEqual(cache.get('foo', 'baz'), 'baz')
- def test_get_does_not_ignore_non_enoent_errno_values(self):
+ def test_get_does_not_ignore_non_filenotfound_exceptions(self):
with mock.patch('builtins.open', side_effect=IOError):
with self.assertRaises(IOError):
cache.get('foo')