• Brandon T. Willard's avatar
    Update numpy.random usage in tests · 6cca25e3
    Brandon T. Willard 提交于
    - Use newer, NumPy-recommended `numpy.random` functions (e.g. replace `rand`
      `random`, `randn` with `standard_normal`, etc.)
    - Seed some unseeded/inconsistently seeded tests
    - Minor `pytest` usage updates (e.g. use parameterizations, `pytest.raises`, and
      `pytest.warns`)
    - Use `np.array_equal` instead of `np.all(... == ...)`
    6cca25e3
test_nanguardmode.py 2.4 KB