[Pytest-commit] commit/pytest: 2 new changesets
commits-noreply at bitbucket.org
commits-noreply at bitbucket.org
Wed Apr 2 09:30:59 CEST 2014
2 new commits in pytest:
https://bitbucket.org/hpk42/pytest/commits/876494025a0b/
Changeset: 876494025a0b
Branch: test_writeorg_close_tempfile
User: Marc Abramowitz
Date: 2014-03-31 17:25:35
Summary: test_writeorg: Close a tempfile
Affected #: 1 file
diff -r d4b093bc36df977c017b43286953286542c788cf -r 876494025a0b0e05ef38ec1ecb61d0591df99b35 testing/test_capture.py
--- a/testing/test_capture.py
+++ b/testing/test_capture.py
@@ -747,8 +747,9 @@
f = cap.done()
scap = f.read()
assert scap == totext(data1)
- stmp = open(tmpfile.name, 'rb').read()
- assert stmp == data2
+ with open(tmpfile.name, 'rb') as stmp_file:
+ stmp = stmp_file.read()
+ assert stmp == data2
class TestStdCapture:
https://bitbucket.org/hpk42/pytest/commits/61109199d976/
Changeset: 61109199d976
User: hpk42
Date: 2014-04-02 09:30:55
Summary: Merged in msabramo/pytest/test_writeorg_close_tempfile (pull request #136)
test_writeorg: Close a tempfile
Affected #: 1 file
diff -r 1cf062005b1c2743006cde11ee746b8dd53ea40f -r 61109199d97671367bf6498827b349afccb7a154 testing/test_capture.py
--- a/testing/test_capture.py
+++ b/testing/test_capture.py
@@ -719,8 +719,9 @@
scap = cap.snap()
cap.done()
assert scap == totext(data1)
- stmp = open(tmpfile.name, 'rb').read()
- assert stmp == data2
+ with open(tmpfile.name, 'rb') as stmp_file:
+ stmp = stmp_file.read()
+ assert stmp == data2
def test_simple_resume_suspend(self, tmpfile):
with saved_fd(1):
Repository URL: https://bitbucket.org/hpk42/pytest/
--
This is a commit notification from bitbucket.org. You are receiving
this because you have the service enabled, addressing the recipient of
this email.
More information about the pytest-commit
mailing list