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
fixturesattribute toTestCasewhich
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
TestCasethen 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.
Tool: PEP8 Style Checker Processed Files: djblets/testing/testcases.py Tool: Pyflakes Processed Files: djblets/testing/testcases.py