@@ -22,7 +22,11 @@ buildPythonPackage rec {
2222 --replace "test_append_mode_tell_linux_windows" "notest_append_mode_tell_linux_windows"
2323 substituteInPlace pyfakefs/tests/fake_filesystem_unittest_test.py \
2424 --replace "test_copy_real_file" "notest_copy_real_file"
25− '';
25+ '' + (stdenv.lib.optionalString stdenv.isDarwin ''
26+ # this test fails on darwin due to case-insensitive file system
27+ substituteInPlace pyfakefs/tests/fake_os_test.py \
28+ --replace "test_rename_dir_to_existing_dir" "notest_rename_dir_to_existing_dir"
29+ '');
2630
2731 checkInputs = [ pytest glibcLocales ];
2832