Skip to content

Commit 7a82fb7

Browse files
committed
fix odd format(print syntax in tests (fails in py2)
1 parent 313d11e commit 7a82fb7

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/test_field_lookup.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ def test_fk(self):
126126
self.assertIsInstance(
127127
model_field,
128128
models.ForeignKey,
129-
"Found {}, expected ForeignKey".format(print(type(model_field)))
129+
"Found {}, expected ForeignKey".format(type(model_field))
130130
)
131131

132132
def test_fk_source(self):
@@ -136,7 +136,7 @@ def test_fk_source(self):
136136
self.assertIsInstance(
137137
model_field,
138138
models.ForeignKey,
139-
"Found {}, expected ForeignKey".format(print(type(model_field)))
139+
"Found {}, expected ForeignKey".format(type(model_field))
140140
)
141141

142142
def test_reverse_fk(self):
@@ -147,7 +147,7 @@ def test_reverse_fk(self):
147147
self.assertIsInstance(
148148
model_field,
149149
models.ManyToOneRel,
150-
"Found {}, expected ManyToOneRel".format(print(type(model_field)))
150+
"Found {}, expected ManyToOneRel".format(type(model_field))
151151
)
152152

153153
def test_onetoone_reverse(self):

0 commit comments

Comments
 (0)