File tree Expand file tree Collapse file tree 2 files changed +13
-6
lines changed Expand file tree Collapse file tree 2 files changed +13
-6
lines changed Original file line number Diff line number Diff line change 18
18
python-version : ['3.10', '3.11']
19
19
os : [ubuntu-latest]
20
20
pytest : ['"pytest<8.0"', pytest]
21
+ pre : ['', '--pre']
21
22
22
23
steps :
23
24
# actions/setup-python@v5 has built-in functionality for caching and restoring dependencies.
32
33
- name : Install core dependencies
33
34
run : |
34
35
python -m pip install --upgrade pip
35
- python -m pip install ${{matrix.pytest}}
36
- python -m pip install -e .
36
+ python -m pip install ${{matrix.pytest}} ${{matrix.pre}}
37
+ python -m pip install -e . ${{matrix.pre}}
37
38
38
39
# Run self-tests without Scipy and MPL
39
40
# Tests that require Scipy and MPL will be skipped
Original file line number Diff line number Diff line change 3
3
'func7' , 'manip_printoptions' , 'array_abbreviation'
4
4
]
5
5
6
+ import numpy as np
7
+ import pytest
8
+
6
9
def func ():
7
10
"""
8
11
>>> 2 / 3
@@ -171,16 +174,19 @@ def nan_equal():
171
174
>>> import numpy as np
172
175
>>> np.nan
173
176
np.float64(nan)
177
+ """
174
178
179
+
180
+ def test_cmplx_nan ():
181
+ """
175
182
Complex nans
183
+ >>> import numpy as np
176
184
>>> np.nan - 1j*np.nan
177
185
nan + nanj
178
186
179
187
>>> np.nan + 1j*np.nan
180
188
np.complex128(nan+nanj)
181
189
182
- Throw in infs, for a good measure
183
- >>> np.inf + 1j*np.inf
184
- inf + infj
185
-
190
+ >>> 1j*np.complex128(np.nan)
191
+ np.complex128(nan+nanj)
186
192
"""
You can’t perform that action at this time.
0 commit comments