Verified Commit efbbc9c3 authored by Anton Akhmerov's avatar Anton Akhmerov
Browse files

turn off tests that rely on hash implementation in python 3.8

parent 27be9904
Pipeline #26347 passed with stage
in 25 seconds
......@@ -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.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment