Skip to content

Commit

Permalink
fix odd format(print syntax in tests (fails in py2)
Browse files Browse the repository at this point in the history
  • Loading branch information
claytondaley committed Feb 7, 2020
1 parent 313d11e commit 7a82fb7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/test_field_lookup.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ def test_fk(self):
self.assertIsInstance(
model_field,
models.ForeignKey,
"Found {}, expected ForeignKey".format(print(type(model_field)))
"Found {}, expected ForeignKey".format(type(model_field))
)

def test_fk_source(self):
Expand All @@ -136,7 +136,7 @@ def test_fk_source(self):
self.assertIsInstance(
model_field,
models.ForeignKey,
"Found {}, expected ForeignKey".format(print(type(model_field)))
"Found {}, expected ForeignKey".format(type(model_field))
)

def test_reverse_fk(self):
Expand All @@ -147,7 +147,7 @@ def test_reverse_fk(self):
self.assertIsInstance(
model_field,
models.ManyToOneRel,
"Found {}, expected ManyToOneRel".format(print(type(model_field)))
"Found {}, expected ManyToOneRel".format(type(model_field))
)

def test_onetoone_reverse(self):
Expand Down

0 comments on commit 7a82fb7

Please sign in to comment.