diff options
author | Anthony Sottile <asottile@umich.edu> | 2018-10-25 00:01:29 -0700 |
---|---|---|
committer | Anthony Sottile <asottile@umich.edu> | 2018-10-25 00:01:29 -0700 |
commit | 2368fbb63cf144e2bed4120686a4a136647426f0 (patch) | |
tree | 1522f9b5ebd2560769072bb87519f3f0755db4e5 /testing/test_capture.py | |
parent | f6dfca71828967b2e89b406c7dd520c6641dbe29 (diff) | |
download | pytest-2368fbb63cf144e2bed4120686a4a136647426f0.tar.gz |
Apply reorder-python-imports to all files
Diffstat (limited to 'testing/test_capture.py')
-rw-r--r-- | testing/test_capture.py | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/testing/test_capture.py b/testing/test_capture.py index 3dc422efe..4b9b543a5 100644 --- a/testing/test_capture.py +++ b/testing/test_capture.py @@ -1,22 +1,26 @@ # -*- coding: utf-8 -*- -from __future__ import absolute_import, division, print_function +from __future__ import absolute_import +from __future__ import division +from __future__ import print_function -# note: py.io capture tests where copied from -# pylib 1.4.20.dev2 (rev 13d9af95547e) -import pickle +import contextlib import os +import pickle import sys import textwrap from io import UnsupportedOperation import py -import pytest -import contextlib from six import text_type + +import pytest from _pytest import capture from _pytest.capture import CaptureManager from _pytest.main import EXIT_NOTESTSCOLLECTED +# note: py.io capture tests where copied from +# pylib 1.4.20.dev2 (rev 13d9af95547e) + needsosdup = pytest.mark.skipif( not hasattr(os, "dup"), reason="test needs os.dup, not available on this platform" |