(dtype)
| 726 | |
| 727 | @pytest.mark.parametrize("dtype", "FD") |
| 728 | def test_unicode_whitespace_stripping_complex(dtype): |
| 729 | # Complex has a few extra cases since it has two components and |
| 730 | # parentheses |
| 731 | line = " 1 , 2+3j , ( 4+5j ), ( 6+-7j ) , 8j , ( 9j ) \n" |
| 732 | data = [line, line.replace(" ", "\u202F")] |
| 733 | res = np.loadtxt(data, dtype=dtype, delimiter=',') |
| 734 | assert_array_equal(res, np.array([[1, 2+3j, 4+5j, 6-7j, 8j, 9j]] * 2)) |
| 735 | |
| 736 | |
| 737 | @pytest.mark.skipif(IS_PYPY and sys.implementation.version <= (7, 3, 8), |
nothing calls this directly
no test coverage detected