Author: Armin Rigo <[email protected]>
Branch: 
Changeset: r59515:cc03c3f718b4
Date: 2012-12-20 09:56 +0000
http://bitbucket.org/pypy/pypy/changeset/cc03c3f718b4/

Log:    Allow "usemodules=('time',)" to be satisfied also by the 'rctime'
        module.

diff --git a/pypy/tool/pytest/objspace.py b/pypy/tool/pytest/objspace.py
--- a/pypy/tool/pytest/objspace.py
+++ b/pypy/tool/pytest/objspace.py
@@ -49,6 +49,9 @@
             if key == 'usemodules':
                 if info is not None:
                     for modname in value:
+                        if modname == 'time':
+                            continue   # always either 'time' or 'rctime',
+                                       # and any is fine
                         ok = info.get('objspace.usemodules.%s' % modname,
                                       False)
                         if not ok:
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to