-
Notifications
You must be signed in to change notification settings - Fork 39
Open
Description
On Alpine Linux, some architectures (not all of them, e.g. it works fine on x86_64) seem to fail on test_train_timeout_subprocess
:
============================= test session starts ==============================
platform linux -- Python 3.8.3, pytest-5.4.2, py-1.8.1, pluggy-0.13.1
rootdir: /builds/PureTryOut/aports/testing/py3-padatious/src/padatious-0.4.8
collected 36 items
tests/test_all.py ...... [ 16%]
tests/test_container.py ....sF......... [ 58%]
tests/test_entity_edge.py . [ 61%]
tests/test_id_manager.py .... [ 72%]
tests/test_intent.py .. [ 77%]
tests/test_match_data.py .. [ 83%]
tests/test_train_data.py . [ 86%]
tests/test_util.py ..... [100%]
=================================== FAILURES ===================================
______________ TestIntentContainer.test_train_timeout_subprocess _______________
self = <tests.test_container.TestIntentContainer object at 0xffff8f5d54c0>
def test_train_timeout_subprocess(self):
self.cont.add_intent('a', [
' '.join(random.choice('abcdefghijklmnopqrstuvwxyz') for _ in range(5))
for __ in range(300)
])
self.cont.add_intent('b', [
' '.join(random.choice('abcdefghijklmnopqrstuvwxyz') for _ in range(5))
for __ in range(300)
])
a = monotonic()
assert not self.cont.train_subprocess(timeout=0.1)
b = monotonic()
> assert b - a <= 1
E assert (3178089.64288705 - 3178088.391084973) <= 1
tests/test_container.py:149: AssertionError
=========================== short test summary info ============================
FAILED tests/test_container.py::TestIntentContainer::test_train_timeout_subprocess
=================== 1 failed, 34 passed, 1 skipped in 5.89s ====================
I'd think assert with those values would be less than 1 so equal to true, but maybe it doesn't like the .
for some reason?
Metadata
Metadata
Assignees
Labels
No labels