Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 91054f0

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

File tree

Expand file treeCollapse file tree

1 file changed

+2
-2
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+2
-2
lines changed

‎tests/test_MySQLdb_capabilities.py

Copy file name to clipboardExpand all lines: tests/test_MySQLdb_capabilities.py
+2-2Lines changed: 2 additions & 2 deletions
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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.