Преглед на файлове

[test/helper] Fix newlines in output of missing test fields

Philipp Hagemeister преди 11 години
родител
ревизия
155f9550c0
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      test/helper.py

+ 1 - 1
test/helper.py

@@ -141,7 +141,7 @@ def expect_info_dict(self, expected_dict, got_dict):
     if missing_keys:
         def _repr(v):
             if isinstance(v, compat_str):
-                return "'%s'" % v.replace('\\', '\\\\').replace("'", "\\'")
+                return "'%s'" % v.replace('\\', '\\\\').replace("'", "\\'").replace('\n', '\\n')
             else:
                 return repr(v)
         info_dict_str = ''.join(