summaryrefslogtreecommitdiffstatshomepage
path: root/tests/cpydiff/modules_os_getenv.py
blob: d5acd414eb3da0ba4e8c0a75c8210024cd136513 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
"""
categories: Modules,os
description: ``getenv`` returns actual value instead of cached value
cause: The ``environ`` attribute is not implemented
workaround: Unknown
"""

import os

print(os.getenv("NEW_VARIABLE"))
os.putenv("NEW_VARIABLE", "VALUE")
print(os.getenv("NEW_VARIABLE"))