From d889f8b08bf942009f2a80918f8ea0e70f8ff71e Mon Sep 17 00:00:00 2001 From: Scott Sanderson Date: Tue, 16 Feb 2016 13:43:25 -0500 Subject: [PATCH] BUG: Don't use deprecated attribute of exception. --- tests/pipeline/test_term.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/pipeline/test_term.py b/tests/pipeline/test_term.py index 3f386907..7d630a01 100644 --- a/tests/pipeline/test_term.py +++ b/tests/pipeline/test_term.py @@ -369,7 +369,7 @@ class ObjectIdentityTestCase(TestCase): int_column = Column(dtype=int64_dtype, missing_value=3) self.assertTrue( - str(e.exception.message).startswith( + str(e.exception.args[0]).startswith( "Failed to create Column with name 'bad_column'" ) )