[Python-modules-team] Bug#589267: nosetests plugin imports too many modules
Enrico Zini
enrico at debian.org
Fri Jul 16 09:24:59 UTC 2010
Package: python-pylons
Version: 0.10-1
Severity: normal
Hello,
thank you for maintaning pylons.
Bug #589171 has highlighted an issue in pylons nose plugin:
$ nosetests --help
/usr/lib/pymodules/python2.6/tw/core/view.py:223: DeprecationWarning: object.__new__() takes no parameters
obj = object.__new__(cls, *args, **kw)
Usage: nosetests [options]
Options:
[...]
Now, at that stage the pylons nose plugin should only add options to the
nose optparse. In order to do so, it shouldn't need to import pylons and
all its components, which it seems to do because we see that deprecation
warning from ToscaWidgets.
I suppose a possible fix could be having pylons/test.py import the whole
of pylons only inside begin(self).
Ciao,
Enrico
-- System Information:
Debian Release: squeeze/sid
APT prefers testing
APT policy: (500, 'testing')
Architecture: amd64 (x86_64)
Kernel: Linux 2.6.32-trunk-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash
Versions of packages python-pylons depends on:
ii python 2.6.5-5 An interactive high-level object-o
ii python-beaker 1.5.4-1 cache and session library
ii python-decorator 3.2.0-1 simplify usage of python decorator
ii python-formencode 1.2.2-1 validation and form generation Pyt
ii python-mako 0.3.4-2 fast and lightweight templating fo
ii python-nose 0.11.1-1 test discovery and running for Pyt
ii python-paste 1.7.4-1 tools for using a Web Server Gatew
ii python-pastedeploy 1.3.3-3 load, configure, and compose WSGI
ii python-pastescript 1.7.3-6 serving web applications, creating
ii python-pkg-resources 0.6.10-4 Package Discovery and Resource Acc
ii python-routes 1.12.3-1 Routing Recognition and Generation
ii python-simplejson 2.1.1-1 simple, fast, extensible JSON enco
ii python-support 1.0.9 automated rebuilding support for P
ii python-tempita 0.4-1 very small text templating languag
ii python-weberror 0.10.2-1 Python web error handling and exce
ii python-webhelpers 1.0-1 library of helper functions to mak
ii python-webob 0.9.8-1 Python module providing WSGI reque
ii python-webtest 1.2.1+hg20100419-1 wraps any WSGI application and mak
Versions of packages python-pylons recommends:
ii python-sqlalchemy 0.6.1-1 SQL toolkit and Object Relational
ii python-sqlobject 0.12.4-1 object relational manager providin
Versions of packages python-pylons suggests:
ii ipython 0.10-2 enhanced interactive Python shell
pn libapache2-mod-wsgi <none> (no description available)
ii python-cheetah 2.4.2.1-1 text-based template engine and Pyt
ii python-docutils 0.6-5 utilities for the documentation of
ii python-genshi 0.6-1 Python XML-based template engine
ii python-jinja2 2.5-1 small but fast and easy to use sta
ii python-kid 0.9.6-2 simple Pythonic template language
ii python-migrate 0.5.4-3 Database schema migration for SQLA
ii python-myghty 1.1-5 Python based templating framework
ii python-pygments 1.3.1+dfsg-1 syntax highlighting package writte
-- no debconf information
More information about the Python-modules-team
mailing list