1. Pypy
  2. Untitled project
  3. pypy

Commits

Armin Rigo  committed cc03c3f

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

  • Participants
  • Parent commits 35cba9c
  • Branches default

Comments (0)

Files changed (1)

File pypy/tool/pytest/objspace.py

View file
             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: