Commit 072cf022 authored by Paul Sokolovsky's avatar Paul Sokolovsky
Browse files

tests/file-with: Add testcase which failed for @dpgeorge.

Works on x86.
parent 5bf565e3
......@@ -10,3 +10,12 @@ except:
# Note: CPython and us throw different exception trying to read from
# close file.
print("can't read file after with")
# Regression test: test that exception in with initialization properly
# thrown and doesn't crash.
with open('__non_existent', 'r'):
except OSError:
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment