test_python-restart_interpreter.py 264 Bytes
Newer Older
1
# numpy causes troubles when Py_Finalize is called in Interpreter destructor.
Guilhem Saurel's avatar
Guilhem Saurel committed
2
import numpy  # noqa
3
4
5
6
7
8

# Make sure the variable is deleted.
if "var" in locals() or "var" in globals():
    raise ValueError('Not cleaned')

var = "This string should have been deleted."