diff --git a/pkgs/development/python-modules/fsspec/default.nix b/pkgs/development/python-modules/fsspec/default.nix index 4eac7983943..66e251b9362 100644 --- a/pkgs/development/python-modules/fsspec/default.nix +++ b/pkgs/development/python-modules/fsspec/default.nix @@ -24,13 +24,18 @@ buildPythonPackage rec { numpy ]; + pytestFlagsArray = [ "--rootdir=$(mktemp -d)" ]; + disabledTests = [ # Test assumes user name is part of $HOME # AssertionError: assert 'nixbld' in '/homeless-shelter/foo/bar' "test_strip_protocol_expanduser" ] ++ lib.optionals (stdenv.isDarwin) [ - "test_modified" # fails on hydra, works locally - "test_touch" # fails on hydra, works locally + # works locally on APFS, fails on hydra with AssertionError comparing timestamps + # darwin hydra builder uses HFS+ and has only one second timestamp resolution + # this two tests however, assume nanosecond resolution + "test_modified" + "test_touch" ]; meta = with lib; {