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

Commit685890b

Browse files
MNT: more isinstance()
1 parent67bde92 commit685890b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎numpy/_core/tests/test_nditer.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1486,7 +1486,7 @@ def test_iter_copy_casts_structured2():
14861486
# Array of two structured scalars:
14871487
forresinres1,res2:
14881488
# Cast to tuple by getitem, which may be weird and changeable?:
1489-
asserttype(res["a"][0])==tuple
1489+
assertisinstance(res["a"][0],tuple)
14901490
assertres["a"][0]== (1,1)
14911491

14921492
forresinres1,res2:

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp