Skip to content

Commit 91054f0

Browse files
committed
Replaced assertGreater with assertNotEqual so that the code runs with Python 2.6 too.
1 parent 670cede commit 91054f0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/test_MySQLdb_capabilities.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -116,12 +116,12 @@ def test_MULTIPOLYGON(self):
116116
c.execute("SELECT id, AsWKB(border) FROM test_MULTIPOLYGON")
117117
row = c.fetchone()
118118
self.assertEqual(row[0], 1)
119-
self.assertGreater(len(row[1]), 0)
119+
self.assertNotEqual(len(row[1]), 0)
120120

121121
c.execute("SELECT id, border FROM test_MULTIPOLYGON")
122122
row = c.fetchone()
123123
self.assertEqual(row[0], 1)
124-
self.assertGreater(len(row[1]), 0)
124+
self.assertNotEqual(len(row[1]), 0)
125125
finally:
126126
c.execute("drop table if exists test_MULTIPOLYGON")
127127

0 commit comments

Comments
 (0)