[Pytest-commit] commit/pytest: 3 new changesets

commits-noreply at bitbucket.org commits-noreply at bitbucket.org
Wed Apr 2 18:56:50 CEST 2014


3 new commits in pytest:

https://bitbucket.org/hpk42/pytest/commits/4fb68209f94b/
Changeset:   4fb68209f94b
Branch:      remove_unused_import
User:        Marc Abramowitz
Date:        2014-04-02 18:14:16
Summary:     testing/test_capture.py: Remove unused `import tempfile`
Affected #:  1 file

diff -r e3309a39fb919391d0e9d9cb0e7fc7e75b7162e7 -r 4fb68209f94b2743ee45de1327166c6a1ced6352 testing/test_capture.py
--- a/testing/test_capture.py
+++ b/testing/test_capture.py
@@ -4,7 +4,6 @@
 import os
 import sys
 import py
-import tempfile
 import pytest
 import contextlib
 


https://bitbucket.org/hpk42/pytest/commits/78f58544767e/
Changeset:   78f58544767e
Branch:      remove_unused_import
User:        Marc Abramowitz
Date:        2014-04-02 18:48:08
Summary:     test_capture.py: More PEP8. Remove unused `cap` in `with`.
Affected #:  1 file

diff -r 4fb68209f94b2743ee45de1327166c6a1ced6352 -r 78f58544767e2c23209c81cece9e08f7c7e0702d testing/test_capture.py
--- a/testing/test_capture.py
+++ b/testing/test_capture.py
@@ -857,7 +857,7 @@
 
     def test_stdin_restored(self):
         old = sys.stdin
-        with self.getcapture(in_=True) as cap:
+        with self.getcapture(in_=True):
             newstdin = sys.stdin
         assert newstdin != sys.stdin
         assert sys.stdin is old
@@ -866,7 +866,7 @@
         print ("XXX this test may well hang instead of crashing")
         print ("XXX which indicates an error in the underlying capturing")
         print ("XXX mechanisms")
-        with self.getcapture() as cap:
+        with self.getcapture():
             pytest.raises(IOError, "sys.stdin.read()")
 
 


https://bitbucket.org/hpk42/pytest/commits/fad24b804a2f/
Changeset:   fad24b804a2f
User:        hpk42
Date:        2014-04-02 18:56:46
Summary:     Merged in msabramo/pytest/remove_unused_import (pull request #146)

testing/test_capture.py: Remove unused stuff for PEP8 compliance
Affected #:  1 file

diff -r a1f920be1e33b3ad8c2f0549d482119b52d7f4e1 -r fad24b804a2f20f4f7536f4bd6e6c3ab8c55322f testing/test_capture.py
--- a/testing/test_capture.py
+++ b/testing/test_capture.py
@@ -4,7 +4,6 @@
 import os
 import sys
 import py
-import tempfile
 import pytest
 import contextlib
 
@@ -858,7 +857,7 @@
 
     def test_stdin_restored(self):
         old = sys.stdin
-        with self.getcapture(in_=True) as cap:
+        with self.getcapture(in_=True):
             newstdin = sys.stdin
         assert newstdin != sys.stdin
         assert sys.stdin is old
@@ -867,7 +866,7 @@
         print ("XXX this test may well hang instead of crashing")
         print ("XXX which indicates an error in the underlying capturing")
         print ("XXX mechanisms")
-        with self.getcapture() as cap:
+        with self.getcapture():
             pytest.raises(IOError, "sys.stdin.read()")

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