How to Solve NameError: name 'gettestobjspace' is not defined -- pypy

Solution: Import the 'gettestobjspace' module

# Add the following line to the top of your code
from pypy.conftest import gettestobjspace

 

For more information:
pypy gettestobjspace