Summary: | dev-python/python-dateutil-2.7.2-r1 fails 40 tests | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Paolo Pedroni <paolo.pedroni> |
Component: | Current packages | Assignee: | Python Gentoo Team <python> |
Status: | RESOLVED OBSOLETE | ||
Severity: | normal | CC: | alexey+gentoo, samuel |
Priority: | Normal | Keywords: | TESTFAILURE |
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: | python-dateutil-2.7.2-r1:20190308-161339.log.gz |
Description
Paolo Pedroni
2019-03-08 16:21:20 UTC
I'm also seeing this. It's choking on the file /usr/share/zoneinfo/leap-seconds.list. Removing that file allows the test suite to pass. So the bug here is actually in a gentoo-specific patch, and this fixes it: --- dev-python/python-dateutil/files/0001-zoneinfo-Get-timezone-data-from-system-tzdata.patch +++ dev-python/python-dateutil/files/0001-zoneinfo-Get-timezone-data-from-system-tzdata.patch @@ -57,7 +57,7 @@ index 34f11ad..e9870ca 100644 +def iter_zones(topdir): + for dirpath, dirnames, filenames in os.walk(topdir): + for f in filenames: -+ if f.endswith('.tab'): ++ if f.endswith('.list') or f.endswith('.tab'): + continue + fpath = os.path.join(dirpath, f) + relpath = os.path.relpath(fpath, topdir) (In reply to Samuel Holland from comment #2) > So the bug here is actually in a gentoo-specific patch, and this fixes it: > > --- > dev-python/python-dateutil/files/0001-zoneinfo-Get-timezone-data-from-system- > tzdata.patch > +++ > dev-python/python-dateutil/files/0001-zoneinfo-Get-timezone-data-from-system- > tzdata.patch > @@ -57,7 +57,7 @@ index 34f11ad..e9870ca 100644 > +def iter_zones(topdir): > + for dirpath, dirnames, filenames in os.walk(topdir): > + for f in filenames: > -+ if f.endswith('.tab'): > ++ if f.endswith('.list') or f.endswith('.tab'): > + continue > + fpath = os.path.join(dirpath, f) > + relpath = os.path.relpath(fpath, topdir) Can confirm. This corrects the patch. The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c10b4898dd8abacc49c747501e8b9929601723ad commit c10b4898dd8abacc49c747501e8b9929601723ad Author: Aaron W. Swenson <titanofold@gentoo.org> AuthorDate: 2019-10-17 22:29:25 +0000 Commit: Aaron W. Swenson <titanofold@gentoo.org> CommitDate: 2019-10-17 22:30:28 +0000 dev-python/python-dateutil: Patch fix, remove fbsd Update patch so tests pass again. Remove *-fbsd keywords again. Bug: https://bugs.gentoo.org/679792 Closes: https://bugs.gentoo.org/695810 Package-Manager: Portage-2.3.76, Repoman-2.3.16 Signed-off-by: Aaron W. Swenson <titanofold@gentoo.org> ...o-Get-timezone-data-from-system-tzdata-r1.patch | 104 +++++++++++++++++++++ .../python-dateutil/python-dateutil-2.8.0.ebuild | 4 +- 2 files changed, 106 insertions(+), 2 deletions(-) Old version removed. Please reopen if you can reproduce. |