Fix handling of TestCase.fixtures for broader compatibility.

Review Request #8694 — Created Jan. 31, 2017 and submitted

Information

Djblets
release-0.10.x
42eb2a9...

Reviewers

In Django 1.8, they've added a fixtures attribute to TestCase which
defaults to None. 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 a None
value appropriately.

  • Ran djblets unit tests on 1.6 and 1.8.
  • Ran Review Board unit tests on 1.6 and 1.8.
reviewbot
  1. Tool: PEP8 Style Checker
    Processed Files:
        djblets/testing/testcases.py
    
    
    
    Tool: Pyflakes
    Processed Files:
        djblets/testing/testcases.py
    
    
  2. 
      
brennie
  1. Ship It!
  2. 
      
david
Review request changed
Status:
Completed
Change Summary:
Pushed to release-0.10.x (3fccd1e)