Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit cbd0897

Browse files
committed
BUG: fix a compile and a test warning
1 parent eec0aa2 commit cbd0897

3 files changed

Lines changed: 5 additions & 3 deletions

File tree

numpy/conftest.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,3 +105,7 @@ def check_fpu_mode(request):
105105
@pytest.fixture(autouse=True)
106106
def add_np(doctest_namespace):
107107
doctest_namespace['np'] = numpy
108+
109+
@pytest.fixture(autouse=True)
110+
def env_setup(monkeypatch):
111+
monkeypatch.setenv('PYTHONHASHSEED', '0')

numpy/random/bit_generator.pxd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ cdef class BitGenerator():
2323
cdef class SeedSequence():
2424
cdef readonly object entropy
2525
cdef readonly tuple spawn_key
26-
cdef readonly uint32_t pool_size
26+
cdef readonly Py_ssize_t pool_size
2727
cdef readonly object pool
2828
cdef readonly uint32_t n_children_spawned
2929

pytest.ini

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,3 @@ filterwarnings =
1515
ignore:the matrix subclass is not
1616
ignore:Importing from numpy.matlib is
1717

18-
env =
19-
PYTHONHASHSEED=0

0 commit comments

Comments
 (0)