|
| 1 | +[1m================================================= test session starts ==================================================[0m |
| 2 | +platform linux -- Python 3.8.6, pytest-6.2.5, py-1.10.0, pluggy-1.0.0 |
| 3 | +rootdir: /home/ronan/Dev/repos/hypothesis, configfile: pytest.ini |
| 4 | +plugins: xdist-2.4.0, forked-1.3.0, hypothesis-6.24.0 |
| 5 | +[1mcollecting ... [0m[1mcollected 1 item [0m |
| 6 | + |
| 7 | +tests/numpy/test_from_dtype.py [31mF[0m[31m [100%][0m |
| 8 | + |
| 9 | +======================================================= FAILURES ======================================================= |
| 10 | +[31m[1m______________________________________________ test_can_cast_for_scalars _______________________________________________[0m |
| 11 | +Traceback (most recent call last): |
| 12 | + File "/home/ronan/Dev/repos/hypothesis/hypothesis-python/tests/numpy/test_from_dtype.py", line 80, in test_can_cast_for_scalars |
| 13 | + def test_can_cast_for_scalars(data): |
| 14 | + File "/home/ronan/Dev/repos/hypothesis/hypothesis-python/src/hypothesis/core.py", line 1199, in wrapped_test |
| 15 | + raise the_error_hypothesis_found |
| 16 | + File "/home/ronan/Dev/repos/hypothesis/hypothesis-python/src/hypothesis/core.py", line 1168, in wrapped_test |
| 17 | + state.run_engine() |
| 18 | + File "/home/ronan/Dev/repos/hypothesis/hypothesis-python/src/hypothesis/core.py", line 780, in run_engine |
| 19 | + runner.run() |
| 20 | + File "/home/ronan/Dev/repos/hypothesis/hypothesis-python/src/hypothesis/internal/conjecture/engine.py", line 475, in run |
| 21 | + self._run() |
| 22 | + File "/home/ronan/Dev/repos/hypothesis/hypothesis-python/src/hypothesis/internal/conjecture/engine.py", line 877, in _run |
| 23 | + self.generate_new_examples() |
| 24 | + File "/home/ronan/Dev/repos/hypothesis/hypothesis-python/src/hypothesis/internal/conjecture/engine.py", line 609, in generate_new_examples |
| 25 | + zero_data = self.cached_test_function(bytes(BUFFER_SIZE)) |
| 26 | + File "/home/ronan/Dev/repos/hypothesis/hypothesis-python/src/hypothesis/internal/conjecture/engine.py", line 1056, in cached_test_function |
| 27 | + self.test_function(data) |
| 28 | + File "/home/ronan/Dev/repos/hypothesis/hypothesis-python/src/hypothesis/internal/conjecture/engine.py", line 213, in test_function |
| 29 | + self.__stoppable_test_function(data) |
| 30 | + File "/home/ronan/Dev/repos/hypothesis/hypothesis-python/src/hypothesis/internal/conjecture/engine.py", line 189, in __stoppable_test_function |
| 31 | + self._test_function(data) |
| 32 | + File "/home/ronan/Dev/repos/hypothesis/hypothesis-python/src/hypothesis/core.py", line 727, in _execute_once_for_engine |
| 33 | + escalate_hypothesis_internal_error() |
| 34 | + File "/home/ronan/Dev/repos/hypothesis/hypothesis-python/src/hypothesis/core.py", line 701, in _execute_once_for_engine |
| 35 | + result = self.execute_once(data) |
| 36 | + File "/home/ronan/Dev/repos/hypothesis/hypothesis-python/src/hypothesis/core.py", line 639, in execute_once |
| 37 | + result = self.test_runner(data, run) |
| 38 | + File "/home/ronan/Dev/repos/hypothesis/hypothesis-python/src/hypothesis/executors.py", line 52, in default_new_style_executor |
| 39 | + return function(data) |
| 40 | + File "/home/ronan/Dev/repos/hypothesis/hypothesis-python/src/hypothesis/core.py", line 635, in run |
| 41 | + return test(*args, **kwargs) |
| 42 | + File "/home/ronan/Dev/repos/hypothesis/hypothesis-python/tests/numpy/test_from_dtype.py", line 80, in test_can_cast_for_scalars |
| 43 | + def test_can_cast_for_scalars(data): |
| 44 | + File "/home/ronan/Dev/repos/hypothesis/hypothesis-python/src/hypothesis/core.py", line 577, in test |
| 45 | + result = self.test(*args, **kwargs) |
| 46 | + File "/home/ronan/Dev/repos/hypothesis/hypothesis-python/tests/numpy/test_from_dtype.py", line 87, in test_can_cast_for_scalars |
| 47 | + result = data.draw( |
| 48 | + File "/home/ronan/Dev/repos/hypothesis/hypothesis-python/src/hypothesis/strategies/_internal/core.py", line 1692, in draw |
| 49 | + result = self.conjecture_data.draw(strategy) |
| 50 | + File "/home/ronan/Dev/repos/hypothesis/hypothesis-python/src/hypothesis/internal/conjecture/data.py", line 866, in draw |
| 51 | + strategy.validate() |
| 52 | + File "/home/ronan/Dev/repos/hypothesis/hypothesis-python/src/hypothesis/strategies/_internal/strategies.py", line 401, in validate |
| 53 | + self.do_validate() |
| 54 | + File "/home/ronan/Dev/repos/hypothesis/hypothesis-python/src/hypothesis/strategies/_internal/lazy.py", line 134, in do_validate |
| 55 | + assert isinstance(w, SearchStrategy), f"{self!r} returned non-strategy {w!r}" |
| 56 | +AssertionError: arrays(dtype=dtype('int16'), shape=(), elements=from_dtype(dtype('bool'))) returned non-strategy [] |
| 57 | +------------------------------------------------------ Hypothesis ------------------------------------------------------ |
| 58 | +You can add @seed(11024453522097809882419571698055639517) to this test or run pytest with --hypothesis-seed=11024453522097809882419571698055639517 to reproduce this failure. |
| 59 | +================================================= slowest 20 durations ================================================= |
| 60 | +0.01s setup hypothesis-python/tests/numpy/test_from_dtype.py::test_can_cast_for_scalars |
| 61 | + |
| 62 | +(2 durations < 0.005s hidden. Use -vv to show these durations.) |
| 63 | +=============================================== short test summary info ================================================ |
| 64 | +FAILED tests/numpy/test_from_dtype.py::test_can_cast_for_scalars - AssertionError: arrays(dtype=dtype('int16'), shape... |
| 65 | +[31m================================================== [31m[1m1 failed[0m[31m in 0.06s[0m[31m ===================================================[0m |
|
0 commit comments