2 new changesets in pytest: http://bitbucket.org/hpk42/pytest/changeset/4d1a754b239d/ changeset: 4d1a754b239d branches: user: gutworth date: 2011-06-03 23:51:49 summary: fix assertion introspection on python 3.2+ affected #: 1 file (5 bytes)
--- a/_pytest/assertion/__init__.py Wed Jun 01 15:08:54 2011 +0200 +++ b/_pytest/assertion/__init__.py Fri Jun 03 16:51:49 2011 -0500 @@ -68,8 +68,8 @@ def _write_pyc(co, source_path): if hasattr(imp, "cache_from_source"): # Handle PEP 3147 pycs. - pyc = py.path(imp.cache_from_source(source_math)) - pyc.dirname.ensure(dir=True) + pyc = py.path.local(imp.cache_from_source(str(source_path))) + pyc.ensure() else: pyc = source_path + "c" mtime = int(source_path.mtime()) http://bitbucket.org/hpk42/pytest/changeset/363cffc6297a/ changeset: 363cffc6297a branches: user: gutworth date: 2011-06-04 05:11:00 summary: account for quotes in error messages affected #: 2 files (4 bytes) --- a/testing/acceptance_test.py Fri Jun 03 16:51:49 2011 -0500 +++ b/testing/acceptance_test.py Fri Jun 03 22:11:00 2011 -0500 @@ -89,7 +89,7 @@ result = testdir.runpytest(p) result.stdout.fnmatch_lines([ #XXX on jython this fails: "> import import_fails", - "E ImportError: No module named does_not_work", + "E ImportError: No module named *does_not_work*", ]) assert result.ret == 1 --- a/testing/test_terminal.py Fri Jun 03 16:51:49 2011 -0500 +++ b/testing/test_terminal.py Fri Jun 03 22:11:00 2011 -0500 @@ -533,7 +533,7 @@ result = testdir.runpytest(*option.args) result.stdout.fnmatch_lines([ "> import xyz", - "E ImportError: No module named xyz", + "E ImportError: No module named *xyz*", "*1 error*", ]) 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