Replace "== None" and "!= None" with "is None" and "is not None", respectively
svn: r12098
This commit is contained in:
@@ -115,7 +115,7 @@ class ReferenceMapTest (GrampsDbBaseTest):
|
||||
self._db.remove_person(person.get_handle(),tran)
|
||||
self._db.transaction_commit(tran, "Del Person")
|
||||
|
||||
assert self._db.get_person_from_handle(person.get_handle()) == None
|
||||
assert self._db.get_person_from_handle(person.get_handle()) is None
|
||||
|
||||
references = [ ref for ref in self._db.find_backlink_handles(source.get_handle()) ]
|
||||
|
||||
|
@@ -85,7 +85,7 @@ class GrampsDbBaseTest(unittest.TestCase):
|
||||
|
||||
tran = self._db.transaction_begin()
|
||||
source = RelLib.Source()
|
||||
if repos != None:
|
||||
if repos is not None:
|
||||
repo_ref = RelLib.RepoRef()
|
||||
repo_ref.set_reference_handle(repos.get_handle())
|
||||
source.add_repo_reference(repo_ref)
|
||||
|
Reference in New Issue
Block a user