From efbbc9c335bcba5087be633fc11922d60472570e Mon Sep 17 00:00:00 2001 From: Anton Akhmerov Date: Tue, 24 Dec 2019 13:42:09 +0100 Subject: [PATCH] turn off tests that rely on hash implementation in python 3.8 --- test_tinyarray.py | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/test_tinyarray.py b/test_tinyarray.py index 32974d0..890cfec 100644 --- a/test_tinyarray.py +++ b/test_tinyarray.py @@ -11,7 +11,7 @@ import operator, warnings import platform import itertools as it import tinyarray as ta -from pytest import raises +from pytest import raises, xfail import numpy as np from numpy.testing import assert_equal, assert_almost_equal import sys @@ -264,6 +264,10 @@ def test_iteration(): def test_as_dict_key(): + # TODO: remove this once gitlab issue 16 is closed + if sys.version_info >= (3, 8, 0): + xfail('New version of tuple hash not supported yet.') + n = 100 d = {} for dtype in dtypes + dtypes: @@ -275,6 +279,10 @@ def test_as_dict_key(): def test_hash_equality(): + # TODO: remove this once gitlab issue 16 is closed + if sys.version_info >= (3, 8, 0): + xfail('New version of tuple hash not supported yet.') + random.seed(123) # These refer to the width of integers stored in a tinyarray.ndarray_int. -- GitLab