diff options
Diffstat (limited to 'tests/cpydiff/modules_os_getenv.py')
-rw-r--r-- | tests/cpydiff/modules_os_getenv.py | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/cpydiff/modules_os_getenv.py b/tests/cpydiff/modules_os_getenv.py new file mode 100644 index 0000000000..1313755564 --- /dev/null +++ b/tests/cpydiff/modules_os_getenv.py @@ -0,0 +1,10 @@ +""" +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')) |