Browse Source

Updated test for ExceptionInfo.__str__

Ask Solem 15 years ago
parent
commit
1589897d8e
1 changed files with 1 additions and 1 deletions
  1. 1 1
      celery/tests/test_datastructures.py

+ 1 - 1
celery/tests/test_datastructures.py

@@ -47,7 +47,7 @@ class TestExceptionInfo(unittest.TestCase):
             exc_info = sys.exc_info()
 
         einfo = ExceptionInfo(exc_info)
-        self.assertEquals(str(einfo), "The quick brown fox jumps...")
+        self.assertEquals(str(einfo), einfo.traceback)
         self.assertTrue(isinstance(einfo.exception, LookupError))
         self.assertEquals(einfo.exception.args,
                 ("The quick brown fox jumps...", ))