From e5c8b5e63e811a8240ef066e3c0ed6bfdae93f5f Mon Sep 17 00:00:00 2001 From: James Lamb Date: Mon, 10 Jun 2024 11:14:46 -0700 Subject: [PATCH] formatting --- tests/test_impls.py | 4 ++-- tests/test_packages.py | 5 ++++- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/tests/test_impls.py b/tests/test_impls.py index 78817d6..bc26bc0 100644 --- a/tests/test_impls.py +++ b/tests/test_impls.py @@ -336,12 +336,12 @@ def test_edit_pyproject( ("from setuptools import setup\nsetup(setup_requires=[])\n", True), # 'setup_requires' actually passed into setup(), on its own line ( - "from setuptools import setup\nsetup(\n setup_requires=['rmm']\n)\n# setup_requires\n", + "from setuptools import setup\nsetup(\n setup_requires=['rmm']\n)\n# setup_requires\n", # noqa: E501 True, ), # 'setup_requires' actually passed into setup(), via a dictionary ( - "from setuptools import setup\nopts={'setup_requires': ['rmm']}\nsetup(**opts)\n", + "from setuptools import setup\nopts={'setup_requires': ['rmm']}\nsetup(**opts)\n", # noqa: E501 True, ), ], diff --git a/tests/test_packages.py b/tests/test_packages.py index 64f6667..0af40f3 100644 --- a/tests/test_packages.py +++ b/tests/test_packages.py @@ -144,7 +144,10 @@ def test_setuptools_with_setup_requires_fails_with_informative_error( _generate_wheel(env=isolated_env, package_dir=package_dir) captured_output = capfd.readouterr() - assert "ValueError: Detected use of 'setup_requires' in a setup.py file" in captured_output.out + assert ( + "ValueError: Detected use of 'setup_requires' in a setup.py file" + in captured_output.out + ) @pytest.mark.parametrize("nvcc_version", ["11", "12"])