pypy/module/_sre/test/test_app_sre.py::AppTestSreMatch::()::test_group_takes_index
self = <pypy.interpreter.typedef.W_ObjectObjectUserDictWeakrefable object at 0x00000224551e6d08>
def test_group_takes_index(self):
import re
class Index:
def __init__(self, value):
self.value = value
def __index__(self):
return self.value
> assert re.match("(foo)", "foo").group(Index(1)) == "foo"
E (application-level) AttributeError: partially initialized module 're' has no attribute 'match' (most likely due to a circular import)
[d:\pypy_stuff\buildbot64\slave\own-win-x86-64\build\pypy\module\_sre\test\test_app_sre.py:117]:8: AttributeError
builder: own-win-x86-64 build #2382+
test: pypy/module/_sre/test/test_app_sre.py::AppTestSreMatch::()::test_group_takes_index