From 560acfacc85ab64c2d5cba52b6731c8a80bcf879 Mon Sep 17 00:00:00 2001 From: "Daniel M. Capella" Date: Sun, 10 Sep 2023 20:22:35 -0400 Subject: [PATCH] subprocess32 no longer needed Python 2 support has been dropped. --- dev-requirements.txt | 1 - pyfiglet/tests/test_cli.py | 10 +++++----- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/dev-requirements.txt b/dev-requirements.txt index 671124a..05969c3 100644 --- a/dev-requirements.txt +++ b/dev-requirements.txt @@ -1,4 +1,3 @@ build pytest -subprocess32 wheel diff --git a/pyfiglet/tests/test_cli.py b/pyfiglet/tests/test_cli.py index aa2d4af..fb88bbd 100644 --- a/pyfiglet/tests/test_cli.py +++ b/pyfiglet/tests/test_cli.py @@ -1,7 +1,7 @@ import os +import subprocess import pytest -import subprocess32 @pytest.fixture @@ -30,14 +30,14 @@ def test_strip(): 00:::::::::00 000000000 ''' - result = subprocess32.run(command, shell=True, stdout=subprocess32.PIPE) + result = subprocess.run(command, shell=True, stdout=subprocess.PIPE) assert result.stdout.decode() == expected assert result.returncode == 0 def test_strip_strange_font(test_font_dir): install_command = "pyfiglet -L %s/TEST_ONLY.flf " % test_font_dir - subprocess32.run(install_command, shell=True, check=True) + subprocess.run(install_command, shell=True, check=True) command = "pyfiglet -f TEST_ONLY -s 0" expected = '''\ @@ -51,7 +51,7 @@ def test_strip_strange_font(test_font_dir): 0000000000 ''' - result = subprocess32.run(command, shell=True, stdout=subprocess32.PIPE) + result = subprocess.run(command, shell=True, stdout=subprocess.PIPE) assert result.stdout.decode() == expected assert result.returncode == 0 @@ -79,6 +79,6 @@ def test_normalize(): 000000000 ''' - result = subprocess32.run(command, shell=True, stdout=subprocess32.PIPE) + result = subprocess.run(command, shell=True, stdout=subprocess.PIPE) assert result.stdout.decode() == expected assert result.returncode == 0