From 91054f07cb780539d0cbf4c0e5a715d7747c7766 Mon Sep 17 00:00:00 2001 From: Philipp Spitzer Date: Mon, 20 Jul 2015 23:32:14 +0200 Subject: [PATCH] Replaced assertGreater with assertNotEqual so that the code runs with Python 2.6 too. --- tests/test_MySQLdb_capabilities.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/test_MySQLdb_capabilities.py b/tests/test_MySQLdb_capabilities.py index e9f8151..23d7d9e 100644 --- a/tests/test_MySQLdb_capabilities.py +++ b/tests/test_MySQLdb_capabilities.py @@ -116,12 +116,12 @@ class test_MySQLdb(capabilities.DatabaseTest): c.execute("SELECT id, AsWKB(border) FROM test_MULTIPOLYGON") row = c.fetchone() 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") row = c.fetchone() self.assertEqual(row[0], 1) - self.assertGreater(len(row[1]), 0) + self.assertNotEqual(len(row[1]), 0) finally: c.execute("drop table if exists test_MULTIPOLYGON")