[pypy-commit] pypy default: Don't put an __init__ in a Test class, it makes py.test skip(!?!!) that class

arigo pypy.commits at gmail.com
Thu Sep 1 05:50:12 EDT 2016


Author: Armin Rigo <arigo at tunes.org>
Branch: 
Changeset: r86813:8e7fe0c9ab70
Date: 2016-09-01 11:49 +0200
http://bitbucket.org/pypy/pypy/changeset/8e7fe0c9ab70/

Log:	Don't put an __init__ in a Test class, it makes py.test skip(!?!!)
	that class

diff --git a/rpython/rlib/test/test_runicode.py b/rpython/rlib/test/test_runicode.py
--- a/rpython/rlib/test/test_runicode.py
+++ b/rpython/rlib/test/test_runicode.py
@@ -286,7 +286,7 @@
 
 
 class TestUTF8Decoding(UnicodeTests):
-    def __init__(self):
+    def setup_method(self, meth):
         self.decoder = self.getdecoder('utf-8')
 
     def to_bytestring(self, bytes):


More information about the pypy-commit mailing list