File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -196,7 +196,7 @@ def test_ignore_base_remote_context():
196196 ctx_url = "http://example.org/remote-base.jsonld"
197197 SOURCES [ctx_url ] = {"@context" : {"@base" : "/remote" }}
198198 ctx = Context (ctx_url )
199- assert ctx .base == None
199+ assert ctx .base is None
200200
201201
202202@_expect_exception (errors .RECURSIVE_CONTEXT_INCLUSION )
Original file line number Diff line number Diff line change @@ -267,19 +267,19 @@ def test_expand_curie_exception_messages(self) -> None:
267267 g = Graph ()
268268
269269 with pytest .raises (TypeError ) as e :
270- assert g .namespace_manager .expand_curie (URIRef ("urn:example" )) == None
270+ assert g .namespace_manager .expand_curie (URIRef ("urn:example" )) is None
271271 assert str (e .value ) == "Argument must be a string, not URIRef."
272272
273273 with pytest .raises (TypeError ) as e :
274- assert g .namespace_manager .expand_curie (Literal ("rdf:type" )) == None
274+ assert g .namespace_manager .expand_curie (Literal ("rdf:type" )) is None
275275 assert str (e .value ) == "Argument must be a string, not Literal."
276276
277277 with pytest .raises (TypeError ) as e :
278- assert g .namespace_manager .expand_curie (BNode ()) == None
278+ assert g .namespace_manager .expand_curie (BNode ()) is None
279279 assert str (e .value ) == "Argument must be a string, not BNode."
280280
281281 with pytest .raises (TypeError ) as e :
282- assert g .namespace_manager .expand_curie (Graph ()) == None
282+ assert g .namespace_manager .expand_curie (Graph ()) is None
283283 assert str (e .value ) == "Argument must be a string, not Graph."
284284
285285 @pytest .mark .parametrize (
You can’t perform that action at this time.
0 commit comments