diff --git a/repo_helper/files/testing.py b/repo_helper/files/testing.py index 31720f8d..ad14d622 100644 --- a/repo_helper/files/testing.py +++ b/repo_helper/files/testing.py @@ -106,7 +106,7 @@ class ToxConfig(IniConfigurator): "pytest", ] - def get_setenv(self, prefer_binary: bool = True, setuptools_stdlib=True) -> List[str]: + def get_setenv(self, prefer_binary: bool = True, setuptools_stdlib: bool = True) -> List[str]: """ Return environment variables to be set in the testenv. diff --git a/tests/test_cli/test_show.py b/tests/test_cli/test_show.py index beb7f6d7..aeee5f2a 100644 --- a/tests/test_cli/test_show.py +++ b/tests/test_cli/test_show.py @@ -155,7 +155,8 @@ def test_requirements_no_pager( ) assert result.exit_code == 0 - py_version = py_version.translate(str.maketrans({char: '_' for char in string.punctuation})) + transmap = str.maketrans({char: '_' for char in string.punctuation}) + py_version = py_version.translate(transmap) result.check_stdout( advanced_file_regression, extension=".tree", diff --git a/tests/test_cli/test_show_windows.py b/tests/test_cli/test_show_windows.py index 3d98e2f9..7783de26 100644 --- a/tests/test_cli/test_show_windows.py +++ b/tests/test_cli/test_show_windows.py @@ -101,7 +101,8 @@ def test_requirements_no_pager( ) assert result.exit_code == 0 - py_version = py_version.translate(str.maketrans({char: '_' for char in string.punctuation})) + transmap = str.maketrans({char: '_' for char in string.punctuation}) + py_version = py_version.translate(transmap) result.check_stdout( advanced_file_regression, extension=".tree",