We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d711695 commit 2b82a88Copy full SHA for 2b82a88
tests/test_future/test_utils.py
@@ -368,7 +368,8 @@ def test_chained_exceptions_stacktrace(self):
368
except ValueError as val_err:
369
raise_from(CustomException('ERROR'), val_err)
370
except Exception as err:
371
- self.assertEqual(expected.splitlines(), traceback.format_exc().splitlines())
+ ret = re.sub(r'"[^"]*tests/test_future', '"/opt/python-future/tests/test_future', traceback.format_exc())
372
+ self.assertEqual(expected.splitlines(), ret.splitlines())
373
else:
374
self.fail('No exception raised')
375
0 commit comments