diff options
| author | Aymeric Augustin <aymeric.augustin@m4x.org> | 2017-01-18 22:05:41 +0100 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2017-01-18 21:45:12 -0500 |
| commit | a5563963397aeee30c32e3c1dab31bfe453ca89f (patch) | |
| tree | 6fe111ef4ea95da191037341729c7d39b87c07d7 /tests/cache | |
| parent | eb422e476f3c0070dbf200bd62d97d12150c6fd9 (diff) | |
Refs #23919 -- Replaced io.open() with open().
io.open() is an alias for open() on Python 3.
Diffstat (limited to 'tests/cache')
| -rw-r--r-- | tests/cache/tests.py | 2 |
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') |
