summary refs log tree commit diff
path: root/pkgs/top-level
diff options
context:
space:
mode:
authoraszlig <aszlig@nix.build>2017-11-09 06:42:01 +0100
committeraszlig <aszlig@nix.build>2017-11-09 06:54:53 +0100
commite13c6645b16bcbacbf5ca09c10f4da643a0bab61 (patch)
tree07d8b00c63ee91fec723998a2567c924a0271b75 /pkgs/top-level
parent63a47699f7a5358c0c4dac045d04ca0ae5a92424 (diff)
downloadnixlib-e13c6645b16bcbacbf5ca09c10f4da643a0bab61.tar
nixlib-e13c6645b16bcbacbf5ca09c10f4da643a0bab61.tar.gz
nixlib-e13c6645b16bcbacbf5ca09c10f4da643a0bab61.tar.bz2
nixlib-e13c6645b16bcbacbf5ca09c10f4da643a0bab61.tar.lz
nixlib-e13c6645b16bcbacbf5ca09c10f4da643a0bab61.tar.xz
nixlib-e13c6645b16bcbacbf5ca09c10f4da643a0bab61.tar.zst
nixlib-e13c6645b16bcbacbf5ca09c10f4da643a0bab61.zip
python/natsort: Skip some tests with Python 3.[56]
Since the update to Python 3.6.3 in f906d6d18e87f4e2ee8a47d4f6040c77fd6
some of the Hypothesis tests in natsort suddenly begin to fail with
errors like this one:

res = '\x00\x00', f = <built-in function strxfrm>

>   return partial(reduce, lambda res, f: f(res), functions)
E   ValueError: embedded null character

The tests didn't fail with Python 3.6.2, but they did fail with Python
3.5 already.

I didn't dig through what the exact problem was, but I'd guess that the
problem could lie in Hypothesis itself. Unfortunately updating to the
latest version of Hypothesis didn't turn out to be that easy as well,
because the newer versions have a circular dependency on pytest and a
few other libraries.

So I opted against updating Hypothesis for now and just mark the tests
as "expected to fail" on purpose so that whenever we someday have a
newer version of Hypothesis, the build for natsort will fail and we can
remove this patch again.

Tested against Python 2.7, 3.4, 3.5 and 3.6 and all of the builds now
succeed.

Signed-off-by: aszlig <aszlig@nix.build>
Cc: @jluttine, @FRidh
Diffstat (limited to 'pkgs/top-level')
0 files changed, 0 insertions, 0 deletions