[Python-modules-team] Bug#910318: factory-boy FTBFS: RuntimeError: generator raised StopIteration
Helmut Grohne
helmut at subdivi.de
Thu Oct 4 19:10:22 BST 2018
Source: factory-boy
Version: 2.8.1-2
Severity: serious
Tags: ftbfs
factory-boy fails to build from source in sbuild on unstable/amd64. A
build ends with:
| ======================================================================
| ERROR: test_reset_after_end (tests.test_utils.ResetableIteratorTestCase)
| ----------------------------------------------------------------------
| Traceback (most recent call last):
| File "/<<PKGBUILDDIR>>/factory/utils.py", line 158, in __iter__
| value = next(self.iterator)
| StopIteration
|
| The above exception was the direct cause of the following exception:
|
| Traceback (most recent call last):
| File "/<<PKGBUILDDIR>>/tests/test_utils.py", line 343, in test_reset_after_end
| self.assertRaises(StopIteration, next, iterator)
| File "/usr/lib/python3.7/unittest/case.py", line 743, in assertRaises
| return context.handle('assertRaises', args, kwargs)
| File "/usr/lib/python3.7/unittest/case.py", line 178, in handle
| callable_obj(*args, **kwargs)
| RuntimeError: generator raised StopIteration
|
| ----------------------------------------------------------------------
| Ran 381 tests in 0.311s
|
| FAILED (errors=2, skipped=30)
| Test failed: <unittest.runner.TextTestResult run=381 errors=2 failures=0>
| Creating test database for alias 'default'...
| Creating test database for alias 'replica'...
| Destroying test database for alias 'default'...
| Destroying test database for alias 'replica'...
| Creating test database for alias 'default'...
| Creating test database for alias 'replica'...
| Destroying test database for alias 'default'...
| Destroying test database for alias 'replica'...
| Creating test database for alias 'default'...
| Creating test database for alias 'replica'...
| Destroying test database for alias 'default'...
| Destroying test database for alias 'replica'...
| Creating test database for alias 'default'...
| Creating test database for alias 'replica'...
| Destroying test database for alias 'default'...
| Destroying test database for alias 'replica'...
| error: Test failed: <unittest.runner.TextTestResult run=381 errors=2 failures=0>
| make[1]: *** [debian/rules:33: override_dh_auto_test] Error 1
| make[1]: Leaving directory '/<<PKGBUILDDIR>>'
| make: *** [debian/rules:12: build] Error 2
| dpkg-buildpackage: error: debian/rules build subprocess returned exit status 2
Wild guess: It didn't test on Python 3.7 earlier.
Helmut
More information about the Python-modules-team
mailing list