File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -129,7 +129,10 @@ def copy(self):
129
129
other .digest_size = self .digest_size
130
130
if self ._hmac :
131
131
other ._hmac = self ._hmac .copy ()
132
- other ._inner = other ._outer = None
132
+ if hasattr (self , '_inner' ):
133
+ del other ._inner
134
+ if hasattr (other , '_outer' ):
135
+ del other ._outer
133
136
else :
134
137
other ._hmac = None
135
138
other ._inner = self ._inner .copy ()
Original file line number Diff line number Diff line change @@ -990,7 +990,7 @@ def test_realcopy(self):
990
990
class OpenSSLCopyTestCase (ExtensionCopyTestCase , unittest .TestCase ):
991
991
992
992
def init (self , h ):
993
- h ._init_openssl_hmac (b"key" , b"msg" , digestmod = "sha256" )
993
+ h ._init_hmac (b"key" , b"msg" , digestmod = "sha256" )
994
994
995
995
996
996
class CompareDigestMixin :
You can’t perform that action at this time.
0 commit comments