This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author shireenrao
Recipients jafo, paul.moore, shireenrao, steve.dower, terry.reedy, tim.golden, zach.ware
Date 2019-08-09.06:08:42
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1565330922.39.0.413805978101.issue25172@roundup.psfhosted.org>
In-reply-to
Content
When I try to put the skipUnless decorator on CryptTestCase, I am still seeing a failure when I try to run this. The error is -
File "C:\Users\srao\projects\cpython\lib\test\test_crypt.py", line 59, in CryptTestCase
    @unittest.skipUnless(crypt.METHOD_SHA256 in crypt.methods or
AttributeError: 'NoneType' object has no attribute 'METHOD_SHA256'

Line 59 is the following decorator and method -
@unittest.skipUnless(crypt.METHOD_SHA256 in crypt.methods or
                         crypt.METHOD_SHA512 in crypt.methods,
                        'requires support of SHA-2')
def test_sha2_rounds(self):

I tried a simple @skip decorator and that too fails on the same error. The class level skip is not helping here. Does it make sense to create a different test file for windows?
History
Date User Action Args
2019-08-09 06:08:42shireenraosetrecipients: + shireenrao, terry.reedy, paul.moore, jafo, tim.golden, zach.ware, steve.dower
2019-08-09 06:08:42shireenraosetmessageid: <1565330922.39.0.413805978101.issue25172@roundup.psfhosted.org>
2019-08-09 06:08:42shireenraolinkissue25172 messages
2019-08-09 06:08:42shireenraocreate