diff --git a/integration_tests/test_files.py b/integration_tests/test_files.py
index <HASH>..<HASH> 100644
--- a/integration_tests/test_files.py
+++ b/integration_tests/test_files.py
@@ -13,7 +13,7 @@ class Test_make_unreadable_file(unittest.TestCase):
     def test(self):
         path = os.path.join(self.tmp, "unreadable")
         make_unreadable_file(path)
-        with self.assertRaises(OSError):
+        with self.assertRaises(IOError):
             read_file(path)
 
     def tearDown(self):
Really fix in compatibility with python <I>