Package: src:fast-historgram
Version: 0.7-1
Severity: serious
Tags: sid bullseye ftbfs
User: [email protected]
Usertags: python3.8
I: pybuild base:217: cd
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.8_fast-histogram/build; python3.8 -m pytest
============================= test session starts ==============================
platform linux -- Python 3.8.0+, pytest-4.6.6, py-1.8.0, pluggy-0.13.0
hypothesis profile 'default' ->
database=DirectoryBasedExampleDatabase('/<<PKGBUILDDIR>>/.pybuild/cpython3_3.8_fast-histogram/build/.hypothesis/examples')
rootdir: /<<PKGBUILDDIR>>
plugins: hypothesis-4.36.2
collected 6 items
fast_histogram/tests/test_histogram.py FF.... [100%]
=================================== FAILURES ===================================
__________________________ test_1d_compare_with_numpy __________________________
@given(size=st.integers(0, 100),
> nx=st.integers(1, 10),
xmin=st.floats(-1e10, 1e10), xmax=st.floats(-1e10, 1e10),
weights=st.booleans(),
dtype=st.sampled_from(['>f4', '<f4', '>f8', '<f8']))
@settings(max_examples=5000)
fast_histogram/tests/test_histogram.py:18:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
/usr/lib/python3/dist-packages/hypothesis/core.py:563: in execute
result = self.test_runner(data, run)
/usr/lib/python3/dist-packages/hypothesis/executors.py:56: in
default_new_style_executor
return function(data)
/usr/lib/python3/dist-packages/hypothesis/core.py:561: in run
return test(*args, **kwargs)
fast_histogram/tests/test_histogram.py:18: in test_1d_compare_with_numpy
nx=st.integers(1, 10),
/usr/lib/python3/dist-packages/hypothesis/core.py:522: in test
result = self.test(*args, **kwargs)
fast_histogram/tests/test_histogram.py:28: in test_1d_compare_with_numpy
x = arrays(dtype, size, elements=st.floats(-1000, 1000)).example()
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = arrays(dtype='>f4', shape=0, elements=floats(min_value=-1000,
max_value=1000))
random = not_set
def example(self, random=not_set):
# type: (UniqueIdentifier) -> Ex
"""Provide an example of the sort of value that this strategy
generates. This is biased to be slightly simpler than is typical for
values from this strategy, for clarity purposes.
This method shouldn't be taken too seriously. It's here for interactive
exploration of the API, not for any sort of real testing.
This method is part of the public API.
"""
if random is not not_set:
note_deprecation("The random argument does nothing",
since="2019-07-08")
context = _current_build_context.value
if context is not None:
if context.data is not None and context.data.depth > 0:
raise HypothesisException(
"Using example() inside a strategy definition is a bad "
"idea. Instead consider using
hypothesis.strategies.builds() "
"or @hypothesis.strategies.composite to define your
strategy."
" See https://hypothesis.readthedocs.io/en/latest/data.html"
"#hypothesis.strategies.builds or "
"https://hypothesis.readthedocs.io/en/latest/data.html"
"#composite-strategies for more details."
)
else:
> raise HypothesisException(
"Using example() inside a test function is a bad "
"idea. Instead consider using hypothesis.strategies.data() "
"to draw more examples during testing. See "
"https://hypothesis.readthedocs.io/en/latest/data.html"
"#drawing-interactively-in-tests for more details."
)
E hypothesis.errors.HypothesisException: Using example() inside a
test function is a bad idea. Instead consider using hypothesis.strategies.data()
to draw more examples during testing. See
https://hypothesis.readthedocs.io/en/latest/data.html#drawing-interactively-in-tests
for more details.
/usr/lib/python3/dist-packages/hypothesis/searchstrategy/strategies.py:284:
HypothesisException
---------------------------------- Hypothesis ----------------------------------
Falsifying example: test_1d_compare_with_numpy(size=0, nx=1,
xmin=-2.2204460492503135e-06, xmax=0.0, weights=False, dtype='>f4')
__________________________ test_2d_compare_with_numpy __________________________
> ???
fast_histogram/tests/test_histogram.py:66:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
/usr/lib/python3/dist-packages/hypothesis/core.py:326: in
execute_explicit_examples
test_runner(None, lambda data: test(*arguments, **example_kwargs))
/usr/lib/python3/dist-packages/hypothesis/executors.py:56: in
default_new_style_executor
return function(data)
/usr/lib/python3/dist-packages/hypothesis/core.py:326: in <lambda>
test_runner(None, lambda data: test(*arguments, **example_kwargs))
fast_histogram/tests/test_histogram.py:81: in test_2d_compare_with_numpy
x = arrays(dtype, size, elements=st.floats(-1000, 1000)).example()
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = arrays(dtype='<f8', shape=5, elements=floats(min_value=-1000,
max_value=1000))
random = not_set
def example(self, random=not_set):
# type: (UniqueIdentifier) -> Ex
"""Provide an example of the sort of value that this strategy
generates. This is biased to be slightly simpler than is typical for
values from this strategy, for clarity purposes.
This method shouldn't be taken too seriously. It's here for interactive
exploration of the API, not for any sort of real testing.
This method is part of the public API.
"""
if random is not not_set:
note_deprecation("The random argument does nothing",
since="2019-07-08")
context = _current_build_context.value
if context is not None:
if context.data is not None and context.data.depth > 0:
raise HypothesisException(
"Using example() inside a strategy definition is a bad "
"idea. Instead consider using
hypothesis.strategies.builds() "
"or @hypothesis.strategies.composite to define your
strategy."
" See https://hypothesis.readthedocs.io/en/latest/data.html"
"#hypothesis.strategies.builds or "
"https://hypothesis.readthedocs.io/en/latest/data.html"
"#composite-strategies for more details."
)
else:
> raise HypothesisException(
"Using example() inside a test function is a bad "
"idea. Instead consider using hypothesis.strategies.data() "
"to draw more examples during testing. See "
"https://hypothesis.readthedocs.io/en/latest/data.html"
"#drawing-interactively-in-tests for more details."
)
E hypothesis.errors.HypothesisException: Using example() inside a
test function is a bad idea. Instead consider using hypothesis.strategies.data()
to draw more examples during testing. See
https://hypothesis.readthedocs.io/en/latest/data.html#drawing-interactively-in-tests
for more details.
/usr/lib/python3/dist-packages/hypothesis/searchstrategy/strategies.py:284:
HypothesisException
---------------------------------- Hypothesis ----------------------------------
Falsifying example: test_2d_compare_with_numpy(size=5, nx=1, xmin=0.0,
xmax=84.17833763374462, ny=1, ymin=-999999999.9999989, ymax=0.0, weights=False,
dtype='<f8')
====================== 2 failed, 4 passed in 0.29 seconds ======================
E: pybuild pybuild:341: test: plugin distutils failed with: exit code=1: cd
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.8_fast-histogram/build; python3.8 -m pytest
dh_auto_test: pybuild --test --test-pytest -i python{version} -p "3.8 3.7"
returned exit code 13
make: *** [debian/rules:9: binary-arch] Error 255