1 new commit in py:
https://bitbucket.org/hpk42/py/changeset/c332ad7033ff/ changeset: c332ad7033ff user: gutworth date: 2012-04-18 21:13:48 summary: dynamically creating modules requires invalidating caches in py3.3 affected #: 1 file diff -r af04d88f4d6201296dc17fcc8b67b11c796cb7d9 -r c332ad7033ffbd9c78b09180efef1cc60029cd23 testing/code/test_excinfo.py --- a/testing/code/test_excinfo.py +++ b/testing/code/test_excinfo.py @@ -5,6 +5,13 @@ failsonjython = py.test.mark.xfail("sys.platform.startswith('java')") +try: + import importlib +except ImportError: + invalidate_import_caches = None +else: + invalidate_import_caches = getattr(importlib, "invalidate_caches", None) + class TWMock: def __init__(self): self.lines = [] @@ -304,6 +311,8 @@ modpath = tmpdir.join("mod.py") tmpdir.ensure("__init__.py") modpath.write(source) + if invalidate_import_caches is not None: + invalidate_import_caches() return modpath.pyimport() return importasmod Repository URL: https://bitbucket.org/hpk42/py/ -- 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