Commits

Anonymous committed 01958a5

made a small change to displayhook. Now covers the case for empty strings

Comments (0)

Files changed (1)

django/test/_doctest.py

                  # only set alternate displayhook if Python 3.x or after
                 lines = []
                 def py3_displayhook(value):
-                    if not value:
+                    if value is None:
                         # None should not be considered at all
                         return original_displayhook(value)