diff --git a/Library/Homebrew/test/utils/pypi_spec.rb b/Library/Homebrew/test/utils/pypi_spec.rb index 8193c15b69..ad0657c8a7 100644 --- a/Library/Homebrew/test/utils/pypi_spec.rb +++ b/Library/Homebrew/test/utils/pypi_spec.rb @@ -176,8 +176,12 @@ describe PyPI do expect(described_class.update_pypi_url(old_package_url, "0.0.0")).to be_nil end - it "returns nil for non-pypi urls" do + it "returns nil for nonexistent urls" do expect(described_class.update_pypi_url("https://brew.sh/foo-1.0.tgz", "1.1")).to be_nil end + + it "returns nil for non-pypi urls" do + expect(described_class.update_pypi_url("https://github.com/pypa/pip-audit/releases/download/v2.5.6/v2.5.6.tar.gz", "1.1")).to be_nil + end end end