Skip to content

Commit 1c3baf7

Browse files
committed
Fixed a couple tests to use is instead of equals
Signed-off-by: Joshua Kugler <[email protected]>
1 parent 714acd7 commit 1c3baf7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/test_packageurl.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -342,7 +342,7 @@ def test_colons_in_name_are_handled_correctly() -> None:
342342
assert p.name == "libiconv: character set conversion library"
343343
assert p.version == "1.9"
344344
assert p.qualifiers == {"package-id": "e11a609df352e292"}
345-
assert p.subpath == None
345+
assert p.subpath is None
346346

347347
assert PackageURL.from_string(p.to_string()).to_string() == p.to_string()
348348

@@ -357,7 +357,7 @@ def test_colons_in_namespace_are_handled_correctly() -> None:
357357
assert p.name == "libiconv: character set conversion library"
358358
assert p.version == "1.9"
359359
assert p.qualifiers == {"package-id": "e11a609df352e292"}
360-
assert p.subpath == None
360+
assert p.subpath is None
361361

362362
assert PackageURL.from_string(p.to_string()).to_string() == p.to_string()
363363

0 commit comments

Comments
 (0)