Package: python-nose
Version: 0.10.4-2
Severity: normal
Tags: patch
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi,
I got this warning when byte-compling the proxy.py file:
/usr/lib/pymodules/python2.6/nose/proxy.py:93: SyntaxWarning: assertion is
always true, perhaps remove parentheses?
assert (test is self.test
The assert argument is a tuple because of the parantheses. The attached
patch fixes this by removing the parantheses.
Regards,
Bastian
- -- System Information:
Debian Release: squeeze/sid
APT prefers unstable
APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)
Kernel: Linux 2.6.29.1grog1 (SMP w/2 CPU cores)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages python-nose depends on:
ii python 2.5.4-2 An interactive high-level object-o
ii python-pkg-resources 0.6c9-2 Package Discovery and Resource Acc
ii python-support 1.0.0 automated rebuilding support for P
python-nose recommends no packages.
Versions of packages python-nose suggests:
pn python-coverage <none> (no description available)
- -- no debconf information
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
iEYEARECAAYFAknaQucACgkQeBwlBDLsbz4hEACfQydbzzfB5Jo4xhK/d9+rJAYc
hrwAnRFxn2+NGrEuD0rmqHFyAx/MFwg5
=Tdhh
-----END PGP SIGNATURE-----
--- /usr/share/python-support/python-nose/nose/proxy.py.orig 2009-04-06
19:55:52.000000000 +0200
+++ /usr/share/python-support/python-nose/nose/proxy.py 2009-04-06
19:56:18.000000000 +0200
@@ -90,11 +90,11 @@
# .test's .test. or my .test.test's .case
case = getattr(self.test, 'test', None)
- assert (test is self.test
- or test is case
- or test is getattr(case, '_nose_case', None),
- "ResultProxy for %r (%s) was called with test %r (%s)"
- % (self.test, id(self.test), test, id(test)))
+ assert test is self.test \
+ or test is case \
+ or test is getattr(case, '_nose_case', None), \
+ "ResultProxy for %r (%s) was called with test %r (%s)" \
+ % (self.test, id(self.test), test, id(test))
def afterTest(self, test):
self.assertMyTest(test)