[pypy-svn] pypy fast-forward: Fix test_urllib2; same as CPython issue #10874 (fixed in py3k)

amauryfa commits-noreply at bitbucket.org
Wed Jan 12 00:05:53 CET 2011


Author: Amaury Forgeot d'Arc <amauryfa at gmail.com>
Branch: fast-forward
Changeset: r40609:642ff43af75b
Date: 2011-01-11 23:40 +0100
http://bitbucket.org/pypy/pypy/changeset/642ff43af75b/

Log:	Fix test_urllib2; same as CPython issue #10874 (fixed in py3k)

diff --git a/lib-python/modified-2.7.0/test/test_urllib2.py b/lib-python/modified-2.7.0/test/test_urllib2.py
--- a/lib-python/modified-2.7.0/test/test_urllib2.py
+++ b/lib-python/modified-2.7.0/test/test_urllib2.py
@@ -738,7 +738,7 @@
             else:
                 self.assertTrue(o.req is req)
                 self.assertEqual(req.type, "ftp")
-            self.assertEqual(req.type is "ftp", ftp)
+            self.assertEqual(req.type == "ftp", ftp)
 
     def test_http(self):
 


More information about the Pypy-commit mailing list