This commit is contained in:
Kovid Goyal 2012-11-26 11:32:01 +05:30
parent 449f7a3df6
commit 66c730a996

View File

@ -11,7 +11,7 @@ import os, sys, re
from io import BytesIO from io import BytesIO
from calibre import force_unicode from calibre import force_unicode
from calibre.constants import filesystem_encoding from calibre.constants import filesystem_encoding, isosx
class UNRARError(Exception): class UNRARError(Exception):
pass pass
@ -246,7 +246,7 @@ def test_basic():
del s del s
for i in xrange(3): gc.collect() for i in xrange(3): gc.collect()
used = memory() - start used = memory() - start
if used > 1: if used > 1 and not isosx:
raise ValueError('Leaked %s MB for %d calls'%(used, num)) raise ValueError('Leaked %s MB for %d calls'%(used, num))
# }}} # }}}