Skip to content

Commit

Permalink
formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
jameslamb committed Jun 10, 2024
1 parent 23ce5e1 commit e5c8b5e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
4 changes: 2 additions & 2 deletions tests/test_impls.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
),
],
Expand Down
5 changes: 4 additions & 1 deletion tests/test_packages.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"])
Expand Down

0 comments on commit e5c8b5e

Please sign in to comment.