[Python-modules-team] Bug#907067: python-simpy3 FTBFS with Python 3.7 as supported version
Adrian Bunk
bunk at debian.org
Thu Aug 23 18:27:49 BST 2018
Source: python-simpy3
Version: 3.0.10-3
Severity: serious
Tags: ftbfs
https://tests.reproducible-builds.org/debian/rb-pkg/unstable/amd64/python-simpy3.html
...
I: pybuild base:217: cd /build/1st/python-simpy3-3.0.10/.pybuild/cpython3_3.7_simpy3/build; python3.7 -m pytest tests
============================= test session starts ==============================
platform linux -- Python 3.7.0+, pytest-3.6.4, py-1.5.4, pluggy-0.6.0
rootdir: /build/1st/python-simpy3-3.0.10, inifile: setup.cfg
collected 150 items / 10 deselected
tests/test_condition.py ..................... [ 15%]
tests/test_environment.py ...... [ 19%]
tests/test_event.py .....F... [ 25%]
tests/test_exceptions.py .......... [ 32%]
tests/test_interrupts.py ..F..F.F.F [ 40%]
tests/test_process.py ....F.F..F [ 47%]
tests/test_resources.py ....FFF................................. [ 75%]
tests/test_rt.py ......... [ 82%]
tests/test_timeout.py ....F [ 85%]
tests/test_util.py F.F................. [100%]
=================================== FAILURES ===================================
________________________________ test_triggered ________________________________
env = <simpy.core.Environment object at 0x7f3e9da535f8>
event = <Event() object at 0x7f3e9da53ac8>
def pem(env, event):
value = yield event
> env.exit(value)
tests/test_event.py:90:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <simpy.core.Environment object at 0x7f3e9da535f8>
value = 'i was already done'
def exit(self, value=None):
"""Stop the current process, optionally providing a ``value``.
This is a convenience function provided for Python versions prior to
3.3. From Python 3.3, you can instead use ``return value`` in
a process.
"""
> raise StopIteration(value)
E StopIteration: i was already done
simpy/core.py:154: StopIteration
The above exception was the direct cause of the following exception:
env = <simpy.core.Environment object at 0x7f3e9da535f8>
def test_triggered(env):
def pem(env, event):
value = yield event
env.exit(value)
event = env.event()
event.succeed('i was already done')
> result = env.run(env.process(pem(env, event)))
tests/test_event.py:95:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
simpy/core.py:137: in run
self.step()
simpy/core.py:221: in step
callback(event)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
cls = <class 'simpy.core.StopSimulation'>
event = <Process(pem) object at 0x7f3e9da539e8>
@classmethod
def callback(cls, event):
"""Used as callback in :meth:`BaseEnvironment.run()` to stop the
simulation when the *until* event occurred."""
if event.ok:
raise cls(event.value)
else:
> raise event.value
E RuntimeError: generator raised StopIteration
simpy/core.py:59: RuntimeError
...
More information about the Python-modules-team
mailing list