Fix handling of TestCase.fixtures for broader compatibility.
Review Request #8694 — Created Jan. 31, 2017 and submitted
In Django 1.8, they've added a
fixtures
attribute toTestCase
which
defaults toNone
. This messes up our existing code that expects test cases
that don't have fixtures to just not have this attribute defined.We can't just change it to default to an empty list, because django's
TestCase
then gets grumpy. Instead, I've changed it so we handle aNone
value appropriately.
- Ran djblets unit tests on 1.6 and 1.8.
- Ran Review Board unit tests on 1.6 and 1.8.