Skip to content

Commit e7b453b

Browse files
committed
fix message of assert_isinstance
(expected and actual types were swapped in output)
1 parent bea5051 commit e7b453b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pandas/util/testing.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ def assert_isinstance(obj, class_type_or_tuple):
167167
"""asserts that obj is an instance of class_type_or_tuple"""
168168
assert isinstance(obj, class_type_or_tuple), (
169169
"Expected object to be of type %r, found %r instead" % (
170-
type(obj), class_type_or_tuple))
170+
class_type_or_tuple, type(obj)))
171171

172172
def assert_equal(a, b, msg=""):
173173
"""asserts that a equals b, like nose's assert_equal, but allows custom message to start.

0 commit comments

Comments
 (0)