[Python-modules-team] Bug#891753: python-django FTBFS: ERROR: test_load_empty_dir (migrations.test_loader.LoaderTests)
Paul Gevers
elbrus at debian.org
Sat Dec 1 21:13:30 GMT 2018
user debian-ci at lists.debian.org
usertags 891753 needs-update
thanks
Hi,
On Wed, 28 Feb 2018 16:18:15 +0200 Adrian Bunk <bunk at debian.org> wrote:
>> ======================================================================
> ERROR: test_load_empty_dir (migrations.test_loader.LoaderTests)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
> File "/usr/lib/python3.6/unittest/case.py", line 59, in testPartExecutor
> yield
> File "/usr/lib/python3.6/unittest/case.py", line 605, in run
> testMethod()
> File "/build/1st/python-django-1.11.10/tests/migrations/test_loader.py", line 178, in test_load_empty_dir
> loader = MigrationLoader(connection)
> File "/build/1st/python-django-1.11.10/django/db/migrations/loader.py", line 52, in __init__
> self.build_graph()
> File "/build/1st/python-django-1.11.10/django/db/migrations/loader.py", line 203, in build_graph
> self.load_disk()
> File "/build/1st/python-django-1.11.10/django/db/migrations/loader.py", line 104, in load_disk
> directory = os.path.dirname(module.__file__)
> File "/usr/lib/python3.6/posixpath.py", line 156, in dirname
> p = os.fspath(p)
> TypeError: expected str, bytes or os.PathLike object, not NoneType
We are seeing this now as part of the python3-defaults transition. Plus
one more failure. This failure is involved in blocking the migration of
python3-defaults from unstable to testing.
Paul
https://ci.debian.net/data/autopkgtest/testing/amd64/p/python-django/1412174/log.gz
======================================================================
ERROR: test_load_empty_dir (migrations.test_loader.LoaderTests)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/lib/python3.7/unittest/case.py", line 59, in testPartExecutor
yield
File "/usr/lib/python3.7/unittest/case.py", line 615, in run
testMethod()
File
"/tmp/autopkgtest-lxc.ajuec9jc/downtmp/autopkgtest_tmp/tests/migrations/test_loader.py",
line 178, in test_load_empty_dir
loader = MigrationLoader(connection)
File "/usr/lib/python3/dist-packages/django/db/migrations/loader.py",
line 52, in __init__
self.build_graph()
File "/usr/lib/python3/dist-packages/django/db/migrations/loader.py",
line 203, in build_graph
self.load_disk()
File "/usr/lib/python3/dist-packages/django/db/migrations/loader.py",
line 104, in load_disk
directory = os.path.dirname(module.__file__)
File "/usr/lib/python3.7/posixpath.py", line 156, in dirname
p = os.fspath(p)
TypeError: expected str, bytes or os.PathLike object, not NoneType
======================================================================
FAIL: test_add_failing_subtests
(test_runner.test_parallel.RemoteTestResultTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/lib/python3.7/unittest/case.py", line 59, in testPartExecutor
yield
File "/usr/lib/python3.7/unittest/case.py", line 615, in run
testMethod()
File
"/tmp/autopkgtest-lxc.ajuec9jc/downtmp/autopkgtest_tmp/tests/test_runner/test_parallel.py",
line 86, in test_add_failing_subtests
self.assertEqual(repr(event[3][1]), "AssertionError('0 != 1',)")
File "/usr/lib/python3.7/unittest/case.py", line 839, in assertEqual
assertion_func(first, second, msg=msg)
File "/usr/lib/python3.7/unittest/case.py", line 1220, in
assertMultiLineEqual
self.fail(self._formatMessage(msg, standardMsg))
File "/usr/lib/python3.7/unittest/case.py", line 680, in fail
raise self.failureException(msg)
AssertionError: "AssertionError('0 != 1')" != "AssertionError('0 != 1',)"
- AssertionError('0 != 1')
+ AssertionError('0 != 1',)
? +
----------------------------------------------------------------------
Ran 11596 tests in 209.818s
FAILED (failures=1, errors=1, skipped=731, expected failures=4)
Destroying test database for alias 'default'
('file:memorydb_default?mode=memory&cache=shared')...
Destroying test database for alias 'default'
('file:memorydb_default?mode=memory&cache=shared')...
Destroying test database for alias 'default'
('file:memorydb_default?mode=memory&cache=shared')...
Destroying test database for alias 'other'
('file:memorydb_other?mode=memory&cache=shared')...
Destroying test database for alias 'other'
('file:memorydb_other?mode=memory&cache=shared')...
Destroying test database for alias 'other'
('file:memorydb_other?mode=memory&cache=shared')...
autopkgtest [06:14:02]: test command3: -----------------------]
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: OpenPGP digital signature
URL: <http://alioth-lists.debian.net/pipermail/python-modules-team/attachments/20181201/b02c3783/attachment-0001.sig>
More information about the Python-modules-team
mailing list