Comment 7 for bug 1726399

Revision history for this message
Victor Stinner (vstinner) wrote :

I finished to published my patches.

If all patches are merged, all tests will pass on Python 2.7... except TestOrderedMeta.

I chose to skip TestOrderedMeta with:

+@unittest.skipIf(six.PY2,
+ "Python2 doesn't support metaclass defining __prepare__")
 @mock.patch('logging.warning', mock.Mock(side_effect=WrongMethodDefOrder))
 class TestOrderedMeta(unittest.TestCase):

I included this change by mistake in https://review.openstack.org/#/c/514319/. Jordan Pittier commented:

"I agree with this approach, let's be pragmatic here. I wanted to play with __prepare__, but let's not shoot ourself in the foot with this."

Once pending patches will be merged, I will write the final patch skipping TestOrderedMeta with tox.init and setup.py to get a working "tox -e py27".