From 826c477061b1713f0934879d29f3bd7348de102f Mon Sep 17 00:00:00 2001 From: David Wilson Date: Tue, 26 Jun 2018 03:20:25 +0100 Subject: [PATCH] tests: built-in exceptions live in a different module in 3.x --- tests/call_error_test.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/call_error_test.py b/tests/call_error_test.py index b78d9f48..447a80a9 100644 --- a/tests/call_error_test.py +++ b/tests/call_error_test.py @@ -29,7 +29,9 @@ class ConstructorTest(unittest2.TestCase): def test_form_base_exc(self): ve = SystemExit('eek') e = self.klass(ve) - self.assertEquals(e[0], 'exceptions.SystemExit: eek') + self.assertEquals(e.args[0], + # varies across 2/3. + '%s.%s: eek' % (type(ve).__module__, type(ve).__name__)) def test_from_exc_tb(self): try: