Commit 53ccd158 by George Song Committed by GitHub

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

Strip `c` from `.pyc` for error message comparison
parents fab9ddba f3faad7e
......@@ -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:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment