mirror of
https://github.com/PyMySQL/mysqlclient.git
synced 2025-08-14 18:12:35 +08:00
Replaced assertGreater with assertNotEqual so that the code runs with Python 2.6 too.
This commit is contained in:
@ -116,12 +116,12 @@ class test_MySQLdb(capabilities.DatabaseTest):
|
|||||||
c.execute("SELECT id, AsWKB(border) FROM test_MULTIPOLYGON")
|
c.execute("SELECT id, AsWKB(border) FROM test_MULTIPOLYGON")
|
||||||
row = c.fetchone()
|
row = c.fetchone()
|
||||||
self.assertEqual(row[0], 1)
|
self.assertEqual(row[0], 1)
|
||||||
self.assertGreater(len(row[1]), 0)
|
self.assertNotEqual(len(row[1]), 0)
|
||||||
|
|
||||||
c.execute("SELECT id, border FROM test_MULTIPOLYGON")
|
c.execute("SELECT id, border FROM test_MULTIPOLYGON")
|
||||||
row = c.fetchone()
|
row = c.fetchone()
|
||||||
self.assertEqual(row[0], 1)
|
self.assertEqual(row[0], 1)
|
||||||
self.assertGreater(len(row[1]), 0)
|
self.assertNotEqual(len(row[1]), 0)
|
||||||
finally:
|
finally:
|
||||||
c.execute("drop table if exists test_MULTIPOLYGON")
|
c.execute("drop table if exists test_MULTIPOLYGON")
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user