Skip to content

Commit

Permalink
add prints to help debug import error in cPickle.load
Browse files Browse the repository at this point in the history
  • Loading branch information
Dustin J. Mitchell committed Jun 7, 2010
1 parent 4611ad9 commit e9d31cf
Showing 1 changed file with 5 additions and 1 deletion.
Expand Up @@ -57,7 +57,11 @@ def testNonUnicodeChange(self):
"changes.pck"), "w"))

sm = manager.DBSchemaManager(self.spec, self.basedir)
self.assertRaises(UnicodeError, lambda : sm.upgrade(quiet=True))
try:
self.assertRaises(UnicodeError, lambda : sm.upgrade(quiet=True))
except ImportError:
print sys.modules
raise

def testAsciiChange(self):
# Create changes.pck
Expand Down

0 comments on commit e9d31cf

Please sign in to comment.