diff options
Diffstat (limited to 'tests/test_examples.py')
-rw-r--r-- | tests/test_examples.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/test_examples.py b/tests/test_examples.py index f0799f9..d882890 100644 --- a/tests/test_examples.py +++ b/tests/test_examples.py @@ -1,7 +1,5 @@ """Test example scripts.""" -from __future__ import print_function - import os import subprocess import sys @@ -11,17 +9,19 @@ import pytest from tests import PROJECT_ROOT -@pytest.mark.parametrize('filename', map('example{0}.py'.format, (1, 2, 3))) +@pytest.mark.parametrize("filename", map("example{}.py".format, (1, 2, 3))) def test(filename): """Test with subprocess. :param str filename: Example script filename to run. """ command = [sys.executable, str(PROJECT_ROOT.join(filename))] - env = dict(os.environ, PYTHONIOENCODING='utf-8') + env = dict(os.environ, PYTHONIOENCODING="utf-8") # Run. - proc = subprocess.Popen(command, env=env, stderr=subprocess.STDOUT, stdout=subprocess.PIPE) + proc = subprocess.Popen( + command, env=env, stderr=subprocess.STDOUT, stdout=subprocess.PIPE + ) output = proc.communicate()[0] # Verify. |