summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBas van Beek <b.f.van.beek@vu.nl>2021-01-25 11:59:46 +0100
committerBas van Beek <b.f.van.beek@vu.nl>2021-01-25 11:59:46 +0100
commit7da7789a6508a60d0ad7662ac69bcee9c478c239 (patch)
treec89d3b8c88b1cef4862c104955b3b48d531daae8
parentf5e1a0699c34ec783dfe944cbdbeefbe27f204b3 (diff)
downloadnumpy-dependabot/pip/mypy-0.800.tar.gz
TST: Fix two failing typing testsdependabot/pip/mypy-0.800
Mypy 0.800 changed one of its error messages; the `fail` tests have now been altered to reflect this change
-rw-r--r--numpy/typing/tests/data/fail/array_constructors.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/numpy/typing/tests/data/fail/array_constructors.py b/numpy/typing/tests/data/fail/array_constructors.py
index 9cb59fe5f..f13fdacb2 100644
--- a/numpy/typing/tests/data/fail/array_constructors.py
+++ b/numpy/typing/tests/data/fail/array_constructors.py
@@ -7,10 +7,10 @@ np.require(a, requirements=1) # E: No overload variant
np.require(a, requirements="TEST") # E: incompatible type
np.zeros("test") # E: incompatible type
-np.zeros() # E: Too few arguments
+np.zeros() # E: Missing positional argument
np.ones("test") # E: incompatible type
-np.ones() # E: Too few arguments
+np.ones() # E: Missing positional argument
np.array(0, float, True) # E: Too many positional