Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
kwant
tinyarray
Commits
efbbc9c3
Verified
Commit
efbbc9c3
authored
Dec 24, 2019
by
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
Changes
1
Pipelines
3
Hide whitespace changes
Inline
Side-by-side
test_tinyarray.py
View file @
efbbc9c3
...
...
@@ -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.
...
...
Joseph Weston
@jbweston
mentioned in issue
kwant#359 (closed)
·
Mar 16, 2020
mentioned in issue
kwant#359 (closed)
mentioned in issue kwant#359
Toggle commit list
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment