File tree Expand file tree Collapse file tree 2 files changed +1
-17
lines changed Expand file tree Collapse file tree 2 files changed +1
-17
lines changed Original file line number Diff line number Diff line change @@ -167,16 +167,6 @@ def hash_constructors(self):
167
167
constructors = self .constructors_to_test .values ()
168
168
return itertools .chain .from_iterable (constructors )
169
169
170
- @support .refcount_test
171
- @unittest .skipIf (c_hashlib is None , 'Require _hashlib module' )
172
- def test_refleaks_in_hash___init__ (self ):
173
- gettotalrefcount = support .get_attribute (sys , 'gettotalrefcount' )
174
- sha1_hash = c_hashlib .new ('sha1' )
175
- refs_before = gettotalrefcount ()
176
- for i in range (100 ):
177
- sha1_hash .__init__ ('sha1' )
178
- self .assertAlmostEqual (gettotalrefcount () - refs_before , 0 , delta = 10 )
179
-
180
170
def test_hash_array (self ):
181
171
a = array .array ("b" , range (10 ))
182
172
for cons in self .hash_constructors :
Original file line number Diff line number Diff line change 34
34
35
35
#define MUNCH_SIZE INT_MAX
36
36
37
- <<<<<<< HEAD
38
37
#ifdef NID_sha3_224
39
- == == == =
40
- <<<<<<< HEAD
41
- #if defined(NID_sha3_224 ) && defined(EVP_MD_FLAG_XOF )
42
- >>>>>>> bpo - 38142 : Updated _hashopenssl .c to be PEP 384 compliant
43
38
#define PY_OPENSSL_HAS_SHA3 1
44
39
#endif
45
40
50
45
#ifdef NID_blake2b512
51
46
#define PY_OPENSSL_HAS_BLAKE2 1
52
47
#endif
53
- = == == ==
48
+
54
49
static PyModuleDef _hashlibmodule ;
55
50
56
51
typedef struct {
@@ -60,7 +55,6 @@ typedef struct {
60
55
#define _hashlibstate (o ) ((_hashlibstate *)PyModule_GetState(o))
61
56
#define _hashlibstate_global ((_hashlibstate *)PyModule_GetState(PyState_FindModule(&_hashlibmodule)))
62
57
63
- >>>>>>> bpo - 38142 : Updated _hashopenssl .c to be PEP 384 compliant
64
58
65
59
typedef struct {
66
60
PyObject_HEAD
You can’t perform that action at this time.
0 commit comments