Commit Graph

12 Commits

Author SHA1 Message Date
Thibault Gagnaux
0a9641b3bb python3Packages.fsspec: fix tests on linux
Disables flaky test. Has been resolved in https://github.com/intake/filesystem_spec/issues/432 and
can thus be enabled again starting from version `0.8.4`.
2020-10-07 19:54:54 +02:00
Thibault Gagnaux
5380555efb python3Packages.fsspec: fix tests on linux
Hydra fails with a `DirectoryError: [Errno 21] Is a directory: '/build/source/fsspec/tests/__pycache__'`.
I suspect that both drvs `python37Packages.fsspec` and `python38Packages.fsspec` share the same folder
`'/build/source/fsspec/tests/__pycache__'` which leads to problems. To fix it I just let each drvs run in a
tmp directory using `pytestFlagsArray = [ "--rootdir=$(mktemp -d)" ];`.
2020-09-30 11:02:47 -07:00
Thibault Gagnaux
e749451470 python3Packages.fsspec: fix tests on darwin
Disables the `test_touch` test which fails with the following assertion error on hydra darwin only:
```
tmpdir = local('/private/tmp/nix-build-python3.8-fsspec-0.8.3.drv-0/pytest-of-nixbld3/pytest-0/test_touch0')

    def test_touch(tmpdir):
        import time

        fn = tmpdir + "/in/file"
        fs = fsspec.filesystem("file", auto_mkdir=False)
        with pytest.raises(OSError):
            fs.touch(fn)
        fs = fsspec.filesystem("file", auto_mkdir=True)
        fs.touch(fn)
        info = fs.info(fn)
        time.sleep(0.2)
        fs.touch(fn)
        info2 = fs.info(fn)
        if not WIN:
>           assert info2["mtime"] > info["mtime"]
E           assert 1601358357.0 > 1601358357.0

fsspec/implementations/tests/test_local.py:322: AssertionError
```
2020-09-29 05:53:10 -07:00
Thibault Gagnaux
4dbd770f30 python3Packages.fsspec: fix tests on darwin, 0.7.4 -> 0.8.3 2020-09-27 12:11:57 -07:00
Frederik Rietdijk
39626dcc2a python3.pkgs.fsspec: fix build 2020-06-20 07:37:58 +02:00
Michael Reilly
84cf00f980
treewide: Per RFC45, remove all unquoted URLs 2020-04-10 17:54:53 +01:00
Jonathan Ringer
446fec8c2d
Merge branch 'master' of github.com:NixOS/nixpkgs into staging-next 2019-12-30 10:14:18 -08:00
Frederik Rietdijk
c2bb85d472 python: fsspec: 0.5.2 -> 0.6.2 2019-12-30 16:46:42 +01:00
Chris Ostrouchov
b555997f31
python3Packages.fsspec: 0.5.2 -> 0.6.2 enable tests 2019-12-30 08:56:03 -05:00
Frederik Rietdijk
90c9ebf1cb python: fsspec: 0.4.5 -> 0.5.2 2019-10-27 16:26:41 +01:00
Frederik Rietdijk
a846a8652a python: fsspec: 0.4.1 -> 0.4.5 2019-10-18 09:53:57 +02:00
Wael M. Nasreddine
cfb84a0ee6
pythonPackages.fsspec: init at 0.4.1 2019-08-08 17:46:57 -07:00