Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Fix IntArray test#32

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Open
minrk wants to merge1 commit intojupyter-widgets:master
base:master
Choose a base branch
Loading
fromminrk:fix-int-array

Conversation

@minrk
Copy link
Contributor

dtype is a constructor arg, not a metadata tag

I think it was a coincidence that the early bad_value tests failed with old numpy. They pass as dtype=object with recent numpy. Test is updated to test integer arrays now.

closes#31

dtype is a constructor arg, not a metadata tagI think it was a coincidence that the early bad_value tests failed with old numpy.They pass as dtype=object with recent numpy
@minrkminrk changed the titleFix IntArrayTextFix IntArray testMar 29, 2019
@bnavigator
Copy link

np.int has been removed from numpy 1.24. This should be plain 'int' now.

[   25s] ============================= test session starts ==============================[   25s] platform linux -- Python 3.8.16, pytest-7.2.0, pluggy-1.0.0 -- /usr/bin/python3.8[   25s] cachedir: .pytest_cache[   25s] rootdir: /home/abuild/rpmbuild/BUILD/traittypes-0.2.1[   26s] collecting ... collected 3 items / 1 error[   26s] [   26s] ==================================== ERRORS ====================================[   26s] _____________ ERROR collecting traittypes/tests/test_traittypes.py _____________[   26s] traittypes/tests/test_traittypes.py:19: in <module>[   26s]     class IntArrayTrait(HasTraits):[   26s] traittypes/tests/test_traittypes.py:20: in IntArrayTrait[   26s]     value = Array().tag(dtype=np.int)[   26s] /usr/lib64/python3.8/site-packages/numpy/__init__.py:284: in __getattr__[   26s]     raise AttributeError("module {!r} has no attribute "[   26s] E   AttributeError: module 'numpy' has no attribute 'int'[   26s] =============================== warnings summary ===============================

bmwiedemann pushed a commit to bmwiedemann/openSUSE that referenced this pull requestJan 8, 2023
https://build.opensuse.org/request/show/1056815by user bnavigator + dimstar_suse- Add python-fix-nptypes.patch gh#jupyter-widgets/traittypes#32- Clean specfile, no files catachall- Use PEP517 build (forwarded request 1056814 from bnavigator)
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

No reviews

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

test_bad_values (traittypes.tests.test_traittypes.TestIntArray) fails for openSUSE

2 participants

@minrk@bnavigator

[8]ページ先頭

©2009-2025 Movatter.jp