Skip to content

Commit

Permalink
update tests for scipy 1.11.x
Browse files Browse the repository at this point in the history
  • Loading branch information
gb119 committed Oct 1, 2023
1 parent f701f55 commit fe6cd15
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions recipe/meta.yaml
Expand Up @@ -11,6 +11,7 @@ source:
path: ..

build:
noarch: python
number: 1
script: {{ PYTHON }} setup.py install --single-version-externally-managed --record=record.txt

Expand Down
4 changes: 2 additions & 2 deletions tests/Stoner/Image/test_core.py
Expand Up @@ -290,7 +290,7 @@ def test_other_funcs():

def test_attrs():
attrs=[x for x in dir(ImageArray([])) if not x.startswith("_")]
expected={6:1056,7:1062,8:1062,9:1062,10:1089}.get(spv[1],1054)
expected={6:1056,7:1062,8:1062,9:1062,10:1089,11:1089}.get(spv[1],1054)
assert len(attrs)==expected,"Length of ImageArray dir failed. {}".format(len(attrs))


Expand Down Expand Up @@ -362,7 +362,7 @@ def test_methods():
with pytest.raises(TypeError):
i2-"Gobble"
attrs=[x for x in dir(i2) if not x.startswith("_")]
expected={6:1060, 7:1066,8:1066,9:1066,10:1093}.get(spv[1],1058)
expected={6:1060, 7:1066,8:1066,9:1066,10:1093,11:1093}.get(spv[1],1058)
assert len(attrs)==expected,"Length of ImageFile dir failed. {}:{}".format(expected,len(attrs))
assert image._repr_png_().startswith(b'\x89PNG\r\n'),"Failed to do ImageFile png representation"

Expand Down

0 comments on commit fe6cd15

Please sign in to comment.