diff options
-rw-r--r-- | rpython/rtyper/module/test/test_ll_os_environ.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/rpython/rtyper/module/test/test_ll_os_environ.py b/rpython/rtyper/module/test/test_ll_os_environ.py index 6b0161f028..0bca348871 100644 --- a/rpython/rtyper/module/test/test_ll_os_environ.py +++ b/rpython/rtyper/module/test/test_ll_os_environ.py @@ -20,7 +20,7 @@ def test_unset_error(): del os.environ['TEST'] try: del os.environ['key='] - except OSError: + except (KeyError, OSError): return 1 return 2 else: |