diff options
author | Ezio Melotti <ezio.melotti@gmail.com> | 2009-09-12 18:41:20 (GMT) |
---|---|---|
committer | Ezio Melotti <ezio.melotti@gmail.com> | 2009-09-12 18:41:20 (GMT) |
commit | 78ea2023d8aaac460ef921c45a20053159dec613 (patch) | |
tree | e60fbfd5532a3e8a5430b68f76de05e0724188a5 /Lib/sqlite3 | |
parent | 049d2aa952ae8deb8932a2b84aa1d503b83ad6a5 (diff) | |
download | cpython-78ea2023d8aaac460ef921c45a20053159dec613.zip cpython-78ea2023d8aaac460ef921c45a20053159dec613.tar.gz cpython-78ea2023d8aaac460ef921c45a20053159dec613.tar.bz2 |
Merged revisions 74754 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
........
r74754 | ezio.melotti | 2009-09-12 17:43:43 +0300 (Sat, 12 Sep 2009) | 1 line
#6026 - fix tests that failed without zlib
........
Diffstat (limited to 'Lib/sqlite3')
-rw-r--r-- | Lib/sqlite3/test/types.py | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/Lib/sqlite3/test/types.py b/Lib/sqlite3/test/types.py index 8b1d780..26494e1 100644 --- a/Lib/sqlite3/test/types.py +++ b/Lib/sqlite3/test/types.py @@ -21,9 +21,14 @@ # misrepresented as being the original software. # 3. This notice may not be removed or altered from any source distribution. -import zlib, datetime +import datetime import unittest import sqlite3 as sqlite +try: + import zlib +except ImportError: + zlib = None + class SqliteTypeTests(unittest.TestCase): def setUp(self): @@ -312,6 +317,7 @@ class ObjectAdaptationTests(unittest.TestCase): val = self.cur.fetchone()[0] self.assertEqual(type(val), float) +@unittest.skipUnless(zlib, "requires zlib") class BinaryConverterTests(unittest.TestCase): def convert(s): return zlib.decompress(s) |