[issue12113] test_packaging fails when run twice
Alexis Metaireau ale...@notmyidea.org added the comment: Same here, cannot reproduce the issue. I wasn't able to reproduce it even before Tarek's commit so I suppose his commit didnt changed anything regarding this hash problem. Antoine Tarek, does the attached additional test reproduces the issue on your installation? -- assignee: tarek - alexis keywords: +patch resolution: fixed - status: closed - open Added file: http://bugs.python.org/file22091/serve_twice.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12113 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12113] test_packaging fails when run twice
Changes by STINNER Victor victor.stin...@haypocalc.com: -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12113 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12113] test_packaging fails when run twice
Tarek Ziadé ziade.ta...@gmail.com added the comment: I fixed it. The pypi server missed a Content-Length in its responses, and that made urlretrieve crazy :) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12113 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12113] test_packaging fails when run twice
STINNER Victor victor.stin...@haypocalc.com added the comment: I cannot reproduce the problem: python -m test test_packaging test_packaging. I suppose that it was fixed by tarek. -- nosy: +haypo resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12113 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12113] test_packaging fails when run twice
New submission from Antoine Pitrou pit...@free.fr: $ ./python -m test -Fv -unetwork test_packaging [...] == ERROR: test_download (packaging.tests.test_pypi_dist.TestDistInfo) -- Traceback (most recent call last): File /home/antoine/cpython/default/Lib/packaging/tests/pypi_server.py, line 68, in wrapped func(server=server, *args, **kwargs) File /home/antoine/cpython/default/Lib/packaging/tests/test_pypi_dist.py, line 132, in test_download dist.download(self.mkdtemp()) File /home/antoine/cpython/default/Lib/packaging/pypi/dist.py, line 306, in download self._check_md5(filename) File /home/antoine/cpython/default/Lib/packaging/pypi/dist.py, line 339, in _check_md5 % (hashval.hexdigest(), expected_hashval)) packaging.pypi.errors.HashDoesNotMatch: got 8ae6ff9df26ff04232189724d520a17c instead of fe18804c5b722ff024cabdf514924fc4 == FAIL: test_hooks_get_run (packaging.tests.test_dist.DistributionTestCase) -- Traceback (most recent call last): File /home/antoine/cpython/default/Lib/packaging/tests/test_dist.py, line 234, in test_hooks_get_run 'post-test_dist']) AssertionError: Lists differ: ['finalize', 'pre-test_dist', ... != ['finalize', 'pre-test_dist', ... First list contains 4 additional elements. First extra element 4: finalize + ['finalize', 'pre-test_dist', 'run', 'post-test_dist'] - ['finalize', - 'pre-test_dist', - 'run', - 'post-test_dist', - 'finalize', - 'pre-test_dist', - 'run', - 'post-test_dist'] -- -- assignee: tarek components: Distutils2, Tests messages: 136283 nosy: alexis, eric.araujo, pitrou, tarek priority: high severity: normal stage: needs patch status: open title: test_packaging fails when run twice type: behavior versions: Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12113 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12113] test_packaging fails when run twice
Roundup Robot devnull@devnull added the comment: New changeset 3e0500881003 by Tarek Ziade in branch 'default': Issue #12113: make sure generated module is not reused on a second run http://hg.python.org/cpython/rev/3e0500881003 -- nosy: +python-dev ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12113 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12113] test_packaging fails when run twice
Antoine Pitrou pit...@free.fr added the comment: Still fails on test_download. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12113 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12113] test_packaging fails when run twice
Antoine Pitrou pit...@free.fr added the comment: Also, the hash value is different every time: packaging.pypi.errors.HashDoesNotMatch: got 043840092b5baf155fc94a77319c5f44 instead of fe18804c5b722ff024cabdf514924fc4 -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12113 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12113] test_packaging fails when run twice
Tarek Ziadé ziade.ta...@gmail.com added the comment: my commit fixed only the first issue. the second one is a separate issue that needs more investigation -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12113 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12113] test_packaging fails when run twice
Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com: -- nosy: +Arfrever ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12113 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com