summaryrefslogtreecommitdiff
path: root/numpy
diff options
context:
space:
mode:
authorPrithvi <prithvisinghtewatia@gmail.com>2021-03-13 08:42:42 +0530
committerPrithvi <prithvisinghtewatia@gmail.com>2022-06-17 21:13:06 +0530
commit9c91f21e88697a51b03b8b2d6b63b0d0bb2911b7 (patch)
treec8db63a4b1c3d1ee500a4f2e348c5e89a16f0554 /numpy
parent7c80b55a8b091a102fe7fb17a29978ee28774ebc (diff)
downloadnumpy-9c91f21e88697a51b03b8b2d6b63b0d0bb2911b7.tar.gz
Fixed whitespace after comma in test_umath.py
Diffstat (limited to 'numpy')
-rw-r--r--numpy/core/tests/test_umath.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/numpy/core/tests/test_umath.py b/numpy/core/tests/test_umath.py
index e88bcf8d3..44a9abda3 100644
--- a/numpy/core/tests/test_umath.py
+++ b/numpy/core/tests/test_umath.py
@@ -841,20 +841,20 @@ class TestPower:
# Testing 0^{Non-zero} issue 18378
def test_zero_power_nonzero(self):
zero = np.array([0j])
- cnan = np.array([complex(np.nan,np.nan)])
+ cnan = np.array([complex(np.nan, np.nan)])
def assert_complex_equal(x, y):
assert_array_equal(x.real, y.real)
assert_array_equal(x.imag, y.imag)
#Complex powers with positive real part will not generate a warning
- assert_complex_equal(np.power(zero,1+4j),zero)
- assert_complex_equal(np.power(zero,2-3j),zero)
+ assert_complex_equal(np.power(zero, 1+4j), zero)
+ assert_complex_equal(np.power(zero, 2-3j), zero)
#Complex powers will negative real part will generate a NAN
#and hence a RUNTIME warning
with pytest.warns(expected_warning=RuntimeWarning):
- assert_complex_equal(np.power(zero,-1+1j),cnan)
- assert_complex_equal(np.power(zero,-2-3j),cnan)
+ assert_complex_equal(np.power(zero, -1+1j), cnan)
+ assert_complex_equal(np.power(zero, -2-3j), cnan)
def test_fast_power(self):
x = np.array([1, 2, 3], np.int16)