From bd02a1931a4d8c6bf239de534890c64b16a33ab4 Mon Sep 17 00:00:00 2001 From: Uli Baum Date: Mon, 10 Sep 2018 22:42:23 +0200 Subject: [PATCH] pythonPackages.pyfakefs: fix darwin build One test failed on darwin due to case-insensitive file system, disable it. --- pkgs/development/python-modules/pyfakefs/default.nix | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/pkgs/development/python-modules/pyfakefs/default.nix b/pkgs/development/python-modules/pyfakefs/default.nix index 3208a512e591..64d547ce97ed 100644 --- a/pkgs/development/python-modules/pyfakefs/default.nix +++ b/pkgs/development/python-modules/pyfakefs/default.nix @@ -22,7 +22,11 @@ buildPythonPackage rec { --replace "test_append_mode_tell_linux_windows" "notest_append_mode_tell_linux_windows" substituteInPlace pyfakefs/tests/fake_filesystem_unittest_test.py \ --replace "test_copy_real_file" "notest_copy_real_file" - ''; + '' + (stdenv.lib.optionalString stdenv.isDarwin '' + # this test fails on darwin due to case-insensitive file system + substituteInPlace pyfakefs/tests/fake_os_test.py \ + --replace "test_rename_dir_to_existing_dir" "notest_rename_dir_to_existing_dir" + ''); checkInputs = [ pytest glibcLocales ];