Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Lowered memory consumption in debug ouput test

  • Loading branch information...
commit 00f8b4dfae1bd4b604c41776f5aabf1b46345722 1 parent 5ecead9
@claudep claudep authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 tests/view_tests/tests/test_debug.py
View
4 tests/view_tests/tests/test_debug.py
@@ -333,7 +333,7 @@ def __repr__(self):
def test_too_large_values_handling(self):
"Large values should not create a large HTML."
- large = 32 * 1024 * 1024
+ large = 256 * 1024
repr_of_str_adds = len(repr(''))
try:
class LargeOutput(object):
@@ -345,7 +345,7 @@ def __repr__(self):
exc_type, exc_value, tb = sys.exc_info()
reporter = ExceptionReporter(None, exc_type, exc_value, tb)
html = reporter.get_traceback_html()
- self.assertEqual(len(html) // 1024 // 1024, 0) # still fit in 1MB
+ self.assertEqual(len(html) // 1024 // 128, 0) # still fit in 128Kb
self.assertIn('<trimmed %d bytes string>' % (large + repr_of_str_adds,), html)
@skipIf(six.PY2, 'Bug manifests on PY3 only')
Please sign in to comment.
Something went wrong with that request. Please try again.