1 new changeset in pytest: http://bitbucket.org/hpk42/pytest/changeset/9b1d84e207cc/ changeset: 9b1d84e207cc user: gutworth date: 2011-07-08 20:53:23 summary: customize pyc tag based on implementation affected #: 1 file (153 bytes)
--- a/_pytest/assertion/rewrite.py Fri Jul 08 13:17:42 2011 -0500 +++ b/_pytest/assertion/rewrite.py Fri Jul 08 13:53:23 2011 -0500 @@ -18,9 +18,15 @@ if hasattr(imp, "get_tag"): PYTEST_TAG = imp.get_tag() + "-PYTEST" else: + if hasattr(sys, "pypy_version_info"): + impl = "pypy" + elif sys.platform == "java": + impl = "jython" + else: + impl = "cpython" ver = sys.version_info - PYTEST_TAG = "cpython-" + str(ver[0]) + str(ver[1]) + "-PYTEST" - del ver + PYTEST_TAG = "%s-%s%s-PYTEST" % (impl, ver[0], ver[1]) + del ver, impl class AssertionRewritingHook(object): """Import hook which rewrites asserts.""" Repository URL: https://bitbucket.org/hpk42/pytest/ -- This is a commit notification from bitbucket.org. You are receiving this because you have the service enabled, addressing the recipient of this email. _______________________________________________ py-svn mailing list py-svn@codespeak.net http://codespeak.net/mailman/listinfo/py-svn