Fixed #23947 -- Django's test suite doesn't pass in reverse order

Fixed inconsistent tests when running Django's test suite with --reverse option.
Yes, the bug fix was released on Python3.4.2 https://bugs.python.org/4180