Author: Armin Rigo <ar...@tunes.org> Branch: Changeset: r86815:0ace73a20a81 Date: 2016-09-01 11:03 +0100 http://bitbucket.org/pypy/pypy/changeset/0ace73a20a81/
Log: Hack at our included py.test to fail, not quietly skip, when it sees a TestXxx class with an __init__() method diff --git a/_pytest/python.py b/_pytest/python.py --- a/_pytest/python.py +++ b/_pytest/python.py @@ -498,7 +498,10 @@ """ Collector for test methods. """ def collect(self): if hasinit(self.obj): - pytest.skip("class %s.%s with __init__ won't get collected" % ( + # XXX used to be skip(), but silently skipping classes + # XXX just because they have been written long ago is + # XXX imho a very, very, very bad idea + pytest.fail("class %s.%s with __init__ won't get collected" % ( self.obj.__module__, self.obj.__name__, )) _______________________________________________ pypy-commit mailing list pypy-commit@python.org https://mail.python.org/mailman/listinfo/pypy-commit