Debian Codegraph @

pypy/module/__pypy__/test/test_os.py

raw symbols SCIP
1 class AppTestOs:
2 spaceconfig = dict(usemodules=['__pypy__'])
3
4 def test_real_getenv(self):
5 import __pypy__.os
6 import os
7
8 key = 'UNLIKELY_SET'
9 assert key not in os.environ
10 os.putenv(key, '42')
11 # this one skips Python cache
12 assert __pypy__.os.real_getenv(key) == '42'
13 # this one can only see things set on interpter start (cached)
14 assert os.getenv(key) is None
15 os.unsetenv(key)
16 assert __pypy__.os.real_getenv(key) is None