Your message dated Sat, 21 Jan 2012 01:40:41 +0200
with message-id <[email protected]>
and subject line Re: Bug#522818: python-nose: fix invalid assert in proxy.py
has caused the Debian Bug report #522818,
regarding python-nose: fix invalid assert in proxy.py
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
522818: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=522818
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
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)

--- End Message ---
--- Begin Message ---
Version: 0.11.1-1

Looks like this was fixed upstream in 0.11.0:

commit 838944bd90f6a11bf1be4e2c89b591e3fe7ab674
Author: Kumar McMillan <[email protected]>
Date:   Mon Nov 10 21:02:51 2008 +0000

    applied patch from Augie Fackler -- syntax fix (missing parens) that was 
generating a SyntaxError warning in 2.6

diff --git a/nose/proxy.py b/nose/proxy.py
index 1088bd0..2e09944 100644
--- a/nose/proxy.py
+++ b/nose/proxy.py
@@ -92,7 +92,7 @@ class ResultProxy(object):
         case = getattr(self.test, 'test', None)
         assert (test is self.test 
                 or test is case 
-                or test is getattr(case, '_nose_case', None), 
+                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)))

SR

-- 
Stefano Rivera
  http://tumbleweed.org.za/
  H: +27 21 465 6908 C: +27 72 419 8559  UCT: x3127


--- End Message ---

Reply via email to