WHO PUTS UNITTESTS IN A TRY/EXCEPT BLOCK WHICH CATCHES ALL EXCEPTIONS?!
* WHAT WAS THE POINT OF WRITING THE UNITTEST IF IT ALWAYS PASSES?testing/mmn/mktime_takes_localtime_not_gmtime
parent
347cecb9f2
commit
ae0ab0a7c7
|
@ -732,7 +732,6 @@ be doing it in the first place. - Eric Schmidt, CEO of Google"""
|
||||||
# On Windows, if the handles aren't closed, the files can't be deleted
|
# On Windows, if the handles aren't closed, the files can't be deleted
|
||||||
#os.close(encfno)
|
#os.close(encfno)
|
||||||
#os.close(decfno)
|
#os.close(decfno)
|
||||||
try:
|
|
||||||
key = self.generate_key("Andrew Able", "alpha.com",
|
key = self.generate_key("Andrew Able", "alpha.com",
|
||||||
passphrase="andy")
|
passphrase="andy")
|
||||||
andrew = key.fingerprint
|
andrew = key.fingerprint
|
||||||
|
@ -751,10 +750,7 @@ be doing it in the first place. - Eric Schmidt, CEO of Google"""
|
||||||
if ddata != data:
|
if ddata != data:
|
||||||
logger.debug("was: %r", data)
|
logger.debug("was: %r", data)
|
||||||
logger.debug("new: %r", ddata)
|
logger.debug("new: %r", ddata)
|
||||||
self.assertEqual(data, ddata, "Round-trip must work")
|
self.assertEqual(data, ddata)
|
||||||
except Exception as exc:
|
|
||||||
logger.warn(exc.message)
|
|
||||||
logger.debug("test_file_encryption_and_decryption ends")
|
|
||||||
|
|
||||||
|
|
||||||
suites = { 'parsers': set(['test_parsers_fix_unsafe',
|
suites = { 'parsers': set(['test_parsers_fix_unsafe',
|
||||||
|
|
Loading…
Reference in New Issue