Code optimizations wrt handling of None - bug 2212

svn: r10811
This commit is contained in:
Gerald Britton
2008-06-16 15:01:46 +00:00
parent 47095b4e98
commit 4982292774
124 changed files with 379 additions and 377 deletions

View File

@@ -625,7 +625,7 @@ class TestcaseGenerator(Tool.Tool):
self.fill_object(np)
# Gender
if gender == None:
if gender is None:
gender = randint(0,1)
if randint(0,10) == 1: # Set some persons to unknown gender
np.set_gender(gen.lib.Person.UNKNOWN)