Skip to content

Commit

Permalink
Fixes #169
Browse files Browse the repository at this point in the history
Sweeps under the rug is more accurate.  The code is fine based
on all other versions being tested.  Just a test suite artifact
  • Loading branch information
rogerbinns committed Sep 8, 2014
1 parent d470ae5 commit f95789d
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions tests.py
Expand Up @@ -5019,10 +5019,13 @@ def __init__(self):
self.assertRaises(OverflowError, t.xUnlock, l("0xffffffffeeeeeeee0"))
# doesn't care about nonsensical levels - assert fails in debug build
# t.xUnlock(-1)
TestFile.xUnlock=TestFile.xUnlock1
self.assertRaises(apsw.SQLError, self.assertRaisesUnraisable, TypeError, testdb)
TestFile.xUnlock=TestFile.xUnlock2
self.assertRaises(apsw.SQLError, self.assertRaisesUnraisable, ZeroDivisionError, testdb)
# python 3.4 garbage collection changes mean these get called during cleanup which
# causes confusing messages in wal mode
if not (apsw.connection_hooks and list(sys.version_info)>=[3,4]):
TestFile.xUnlock=TestFile.xUnlock1
self.assertRaises(apsw.SQLError, self.assertRaisesUnraisable, TypeError, testdb)
TestFile.xUnlock=TestFile.xUnlock2
self.assertRaises(apsw.SQLError, self.assertRaisesUnraisable, ZeroDivisionError, testdb)
TestFile.xUnlock=TestFile.xUnlock99
testdb()

Expand Down Expand Up @@ -7114,7 +7117,7 @@ def getw():
cnt+=o in get(fh[1])
self.assertTrue(cnt)

# clean up files
# clean up files
for f in fh:
f.close()

Expand Down

0 comments on commit f95789d

Please sign in to comment.