Author: Bystroushaak <[email protected]>
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
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to