Skip to content

Commit 85ac59f

Browse files
committed
TST: update test to reflect error message change
1 parent b5e44c7 commit 85ac59f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pandas/tests/test_frame.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2245,8 +2245,9 @@ def test_constructor_error_msgs(self):
22452245
try:
22462246
DataFrame({'a': False, 'b': True})
22472247
except (Exception), detail:
2248+
msg = 'If using all scalar values, you must must pass an index'
22482249
self.assert_(type(detail) == ValueError)
2249-
self.assert_("If use all scalar values, must pass index" in str(detail))
2250+
self.assert_(msg in str(detail))
22502251

22512252
def test_constructor_subclass_dict(self):
22522253
# Test for passing dict subclass to constructor

0 commit comments

Comments
 (0)