Fix a datagrid unit test involving an unset variable.

Review Request #7334 — Created May 25, 2015 and submitted

Information

Djblets
release-0.9.x
9502c95...

Reviewers

One of the datagrid unit tests was setting render_context to None when
rendering a column. That function assumed render_context would be a
valid object.

now check before accessing anything in render_context, to make sure it's
not None.

Unit tests pass.

reviewbot
  1. Tool: Pyflakes
    Processed Files:
        djblets/datagrid/grids.py
    
    
    
    Tool: PEP8 Style Checker
    Processed Files:
        djblets/datagrid/grids.py
    
    
  2. 
      
david
  1. Ship It!
  2. 
      
chipx86
Review request changed

Status: Closed (submitted)

Change Summary:

Pushed to release-0.9.x (ee071d4)
Loading...