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
|
||||
#os.close(encfno)
|
||||
#os.close(decfno)
|
||||
try:
|
||||
key = self.generate_key("Andrew Able", "alpha.com",
|
||||
passphrase="andy")
|
||||
andrew = key.fingerprint
|
||||
|
@ -751,10 +750,7 @@ be doing it in the first place. - Eric Schmidt, CEO of Google"""
|
|||
if ddata != data:
|
||||
logger.debug("was: %r", data)
|
||||
logger.debug("new: %r", ddata)
|
||||
self.assertEqual(data, ddata, "Round-trip must work")
|
||||
except Exception as exc:
|
||||
logger.warn(exc.message)
|
||||
logger.debug("test_file_encryption_and_decryption ends")
|
||||
self.assertEqual(data, ddata)
|
||||
|
||||
|
||||
suites = { 'parsers': set(['test_parsers_fix_unsafe',
|
||||
|
|
Loading…
Reference in New Issue