[pypy-commit] pypy faster-rstruct-2: ouch, this was plainly wrong, as it overwrote the correct teardown_method just above

antocuni pypy.commits at gmail.com
Thu May 18 11:13:31 EDT 2017


Author: Antonio Cuni <anto.cuni at gmail.com>
Branch: faster-rstruct-2
Changeset: r91330:0265fea70804
Date: 2017-05-18 11:36 +0200
http://bitbucket.org/pypy/pypy/changeset/0265fea70804/

Log:	ouch, this was plainly wrong, as it overwrote the correct
	teardown_method just above

diff --git a/rpython/rlib/rstruct/test/test_pack.py b/rpython/rlib/rstruct/test/test_pack.py
--- a/rpython/rlib/rstruct/test/test_pack.py
+++ b/rpython/rlib/rstruct/test/test_pack.py
@@ -53,12 +53,6 @@
         standardfmttable.USE_FASTPATH = True
         standardfmttable.ALLOW_SLOWPATH = True
 
-    def teardown_method(self, meth):
-        if not hasattr(self.fmttable, 'USE_FASTPATH'):
-            return
-        self.fmttable.USE_FASTPATH = self.orig_use_fastpath
-        self.fmttable.ALLOW_SLOWPATH = self.orig_allow_slowpath
-
     def mypack(self, fmt, value):
         size = struct.calcsize(fmt)
         fake_fmtiter = FakeFormatIter(self.bigendian, size, value)


More information about the pypy-commit mailing list