[pypy-commit] pypy feature_closed_prop_to_rfile: RFile; added tests of the .closed property.
Bystroushaak
pypy.commits at gmail.com
Tue Jul 30 14:23:29 EDT 2019
Author: Bystroushaak <bystrousak at kitakitsune.org>
Branch: feature_closed_prop_to_rfile
Changeset: r97035:997051ecfc27
Date: 2019-07-29 16:34 +0200
http://bitbucket.org/pypy/pypy/changeset/997051ecfc27/
Log: RFile; added tests of the .closed property.
diff --git a/rpython/rlib/test/test_rfile.py b/rpython/rlib/test/test_rfile.py
--- a/rpython/rlib/test/test_rfile.py
+++ b/rpython/rlib/test/test_rfile.py
@@ -411,7 +411,10 @@
def f():
with open(fname, "w") as f:
f.write("dupa")
+ assert not f.closed
+
try:
+ assert f.closed
f.write("dupb")
except ValueError:
pass
More information about the pypy-commit
mailing list