Merge pull request #15742 from edx/george/fix-breaking-test

Strip `c` from `.pyc` for error message comparison
This commit is contained in:
George Song
2017-08-04 11:20:49 -07:00
committed by GitHub

View File

@@ -60,7 +60,7 @@ class InterceptErrorsTest(TestCase):
u"keyword arguments '{{'raise_error': <class '{}'>}}' "
u"from File \"{}\", line XXX, in test_logs_errors\n"
u" intercepted_function(raise_error=FakeInputException): FakeInputException()"
).format(exception, __file__)
).format(exception, __file__.rstrip('c'))
# Verify that the raised exception has the error message
try: