Failing tests print base64 encoded values

Answered

When I run tests using the Django test runner, failing tests are displaying strange values in the failure messages. I have something equivalent to "self.assertEqual(1, 2)", which shows up when just running tests from the console as:

AssertionError: 1 != 2

When I try to use the Django test runner in Pycharm, the output is:

File ".../pycharm/teamcity/diff_tools.py", line 37, in _patched_equals
raise error
EqualsAssertionError: MQ==|Mg==|

It looks like whatever is in 'diff_tools.py' is base64 encoding values before they get printed to the console? Is there a way to disable this layer so I can just see the raw exception?

PyCharm 2017.3.1 (Professional Edition)
Build #PY-173.3942.36, built on December 13, 2017
JRE: 1.8.0_152-release-1024-b8 x86_64
JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o
Mac OS X 10.12.6

0
1 comment

This problem should be fixed in 2017.3.2 version, corresponding ticket: PY-26330.

0

Please sign in to leave a comment.