Mock the rename failure a bit better
diff --git a/Lib/test/test_shutil.py b/Lib/test/test_shutil.py
index a200236..a750166 100644
--- a/Lib/test/test_shutil.py
+++ b/Lib/test/test_shutil.py
@@ -7,6 +7,7 @@
import stat
import os
import os.path
+import errno
import functools
from test import support
from test.support import TESTFN
@@ -46,7 +47,7 @@
def _fake_rename(*args, **kwargs):
# Pretend the destination path is on a different filesystem.
- raise OSError()
+ raise OSError(getattr(errno, 'EXDEV', 18), "Invalid cross-device link")
def mock_rename(func):
@functools.wraps(func)