Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.debian.maint.python > #7789
| Path | csiph.com!optima2.xanadu-bbs.net!xanadu-bbs.net!news.glorb.com!bofh.it!news.nic.it!robomod |
|---|---|
| From | Brian May <bam@debian.org> |
| Newsgroups | linux.debian.bugs.dist, linux.debian.maint.python |
| Subject | Bug#802839: django-celery: python 3 tests not invoked and break |
| Date | Sun, 25 Oct 2015 02:30:01 +0200 |
| Message-ID | <qnhm9-7Wg-1@gated-at.bofh.it> (permalink) |
| References | <qmVYl-2cr-3@gated-at.bofh.it> <qmWB4-3gM-5@gated-at.bofh.it> <qmY9Q-5tz-3@gated-at.bofh.it> |
| X-Original-To | 802839@bugs.debian.org, Debian Python <debian-python@lists.debian.org> |
| X-Mailbox-Line | From debian-bugs-dist-request@lists.debian.org Sun Oct 25 00:27:14 2015 |
| Old-Return-Path | <debbugs@buxtehude.debian.org> |
| X-Spam-Flag | NO |
| X-Spam-Score | -4.21 |
| Reply-To | Brian May <bam@debian.org>, 802839@bugs.debian.org |
| Resent-To | debian-bugs-dist@lists.debian.org |
| Resent-Cc | Debian Python Modules Team <python-modules-team@lists.alioth.debian.org> |
| X-Debian-Pr-Message | followup 802839 |
| X-Debian-Pr-Package | src:django-celery |
| X-Debian-Pr-Source | django-celery |
| X-Spam-Bayes | score:0.0000 Tokens: new, 10; hammy, 140; neutral, 49; spammy, 0. spammytokens: hammytokens:0.000-+--H*o:Debian, 0.000-+--importerror, 0.000-+--ImportError, 0.000-+--H*f:sk:2015102, 0.000-+--U*bam |
| Organization | Debian |
| Content-Type | text/plain |
| X-Debian-Message | from BTS |
| X-Mailing-List | <debian-bugs-dist@lists.debian.org> archive/latest/1219480 |
| List-ID | <debian-bugs-dist.lists.debian.org> |
| List-URL | <https://lists.debian.org/debian-bugs-dist/> |
| Approved | robomod@news.nic.it |
| Lines | 33 |
| Sender | robomod@news.nic.it |
| X-Original-Date | Sun, 25 Oct 2015 11:23:10 +1100 |
| X-Original-Message-ID | <87r3kjhk41.fsf@prune.linuxpenguins.xyz> |
| X-Original-References | <20151024013437.6207.39326.reportbug@prune.linuxpenguins.xyz> <87h9lhhv76.fsf@prune.linuxpenguins.xyz> <CAJ3HoZ3XuznoMTndALXnYyV43tjjd7CvAwj02MvKnD1o5gFetg@mail.gmail.com> |
| Xref | csiph.com linux.debian.bugs.dist:689381 linux.debian.maint.python:7789 |
Cross-posted to 2 groups.
Show key headers only | View raw
Robert Collins <robertc@robertcollins.net> writes:
> I'd probably shut that warning up using the warnings module API rather
> than weaking the test more broadly.
Might be the best thing.
> Also - track down and file a bug on the leak source.
How *do* you track these down? The warning doesn't say where the file
was opened.
Anyway, I suspect the problem is with the call to imp.find_module(),
which is a depreciated function in Python 3.4:
It ends with:
file = open(file_path, mode, encoding=encoding)
return file, file_path, (suffix, mode, type_)
djcelery.loaders.find_related_module() calls this function and ignores
the result. Which obviously means the file doesn't get closed.
try:
imp.find_module(related_name, app_path)
except ImportError:
return
return importlib.import_module('{0}.{1}'.format(app, related_name))
Need to think about if it is worth fixing, and what the best fix is.
--
Brian May <bam@debian.org>
Back to linux.debian.maint.python | Previous | Next — Previous in thread | Find similar | Unroll thread
Bug#802839: django-celery: python 3 tests not invoked and break Brian May <bam@debian.org> - 2015-10-24 04:20 +0200
Bug#802839: django-celery: python 3 tests not invoked and break Robert Collins <robertc@robertcollins.net> - 2015-10-24 06:00 +0200
Bug#802839: django-celery: python 3 tests not invoked and break Brian May <bam@debian.org> - 2015-10-25 02:30 +0200
csiph-web