Skip to content

Commit b4b1c89

Browse files
committed
Remove duplicated class
1 parent cbeda28 commit b4b1c89

File tree

1 file changed

+0
-15
lines changed

1 file changed

+0
-15
lines changed

src/_pytest/capture.py

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -752,21 +752,6 @@ def close(self):
752752
OrderedCapture.streams.clear()
753753

754754

755-
class OrderedCapture(SysCapture):
756-
"""This class uses deque to keep streams in order."""
757-
streams = collections.deque()
758-
759-
def _get_writer(self):
760-
return OrderedWriter(self.fd)
761-
762-
def snap(self):
763-
res = self.tmpfile.getvalue()
764-
if self.name == "stderr":
765-
# both streams are being read one after another, while stderr is last - it will clear the queue
766-
self.streams.clear()
767-
return res
768-
769-
770755
class OrderedWriter:
771756
encoding = sys.getdefaultencoding()
772757

0 commit comments

Comments
 (0)