Skip to content

Commit

Permalink
Fixing tests for Python 2.6, which doesn't know the value sys.version…
Browse files Browse the repository at this point in the history
…_info.major.
  • Loading branch information
gregmuellegger committed Mar 2, 2015
1 parent 26c1303 commit adc5380
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/widgets.py
Original file line number Diff line number Diff line change
Expand Up @@ -463,7 +463,7 @@ class CBForm(forms.Form):
</p>
""")

@skipUnless(sys.version_info.major < 3, 'Only applies to Python 2')
@skipUnless(sys.version_info[0] < 3, 'Only applies to Python 2')
def test_checkbox_string_values(self):
class CBForm(forms.Form):
cb = forms.BooleanField()
Expand Down

0 comments on commit adc5380

Please sign in to comment.