diff -Nru mpi4py-1.3+hg20120611/debian/changelog mpi4py-1.3+hg20120611/debian/changelog --- mpi4py-1.3+hg20120611/debian/changelog 2012-06-12 01:51:02.000000000 +0000 +++ mpi4py-1.3+hg20120611/debian/changelog 2012-10-23 14:25:34.000000000 +0000 @@ -1,3 +1,10 @@ +mpi4py (1.3+hg20120611-2) unstable; urgency=low + + * Cherry-picked patch from upstream for python3.3 compatibility (failing + unittests) (Closes: #691244) + + -- Yaroslav Halchenko Tue, 23 Oct 2012 10:23:29 -0400 + mpi4py (1.3+hg20120611-1) unstable; urgency=low [ Bradley M. Froehle ] diff -Nru mpi4py-1.3+hg20120611/debian/patches/series mpi4py-1.3+hg20120611/debian/patches/series --- mpi4py-1.3+hg20120611/debian/patches/series 2012-06-12 01:51:02.000000000 +0000 +++ mpi4py-1.3+hg20120611/debian/patches/series 2012-10-23 14:25:34.000000000 +0000 @@ -1,2 +1,3 @@ up_no_modlibs cython_version_check.patch +up_test_win_python3.3.patch diff -Nru mpi4py-1.3+hg20120611/debian/patches/up_test_win_python3.3.patch mpi4py-1.3+hg20120611/debian/patches/up_test_win_python3.3.patch --- mpi4py-1.3+hg20120611/debian/patches/up_test_win_python3.3.patch 1970-01-01 00:00:00.000000000 +0000 +++ mpi4py-1.3+hg20120611/debian/patches/up_test_win_python3.3.patch 2012-10-23 14:25:34.000000000 +0000 @@ -0,0 +1,43 @@ +Author: Lisandro Dalcin +Subject: Python 3.3 compatibility patch from upstream + +Origin: upstream +Bug-Debian: http://bugs.debian.org/691244 +Applied-Upstream: https://code.google.com/p/mpi4py/source/detail?r=330fde6ffccbdf68f5e3bdd0378bf4d6cfa82f50 +Last-Update: 2012-10-23 + +diff --git a/test/test_win.py b/test/test_win.py +--- a/test/test_win.py ++++ b/test/test_win.py +@@ -25,7 +25,10 @@ + if type(self.memory).__name__ == 'buffer': + self.assertEqual(sys.getrefcount(self.memory), refcnt+1) + else: +- self.assertEqual(sys.getrefcount(self.memory), refcnt) ++ if sys.version_info[:3] < (3, 3): ++ self.assertEqual(sys.getrefcount(self.memory), refcnt) ++ else: ++ self.assertEqual(sys.getrefcount(self.memory), refcnt+1) + + def tearDown(self): + refcnt = sys.getrefcount(self.memory) +@@ -33,7 +36,10 @@ + if type(self.memory).__name__ == 'buffer': + self.assertEqual(sys.getrefcount(self.memory), refcnt-1) + else: +- self.assertEqual(sys.getrefcount(self.memory), refcnt) ++ if sys.version_info[:3] < (3, 3): ++ self.assertEqual(sys.getrefcount(self.memory), refcnt) ++ else: ++ self.assertEqual(sys.getrefcount(self.memory), refcnt-1) + if self.mpi_memory: + MPI.Free_mem(self.mpi_memory) + +@@ -46,7 +52,6 @@ + self.assertEqual(dunit, 1) + self.assertEqual(base, pointer) + +- + def testAttributes(self): + cgroup = self.COMM.Get_group() + wgroup = self.WIN.Get_group()