diff --git a/tests/python/simulation/test_RunPlan.py b/tests/python/simulation/test_RunPlan.py index 81718bf58..a927476c8 100644 --- a/tests/python/simulation/test_RunPlan.py +++ b/tests/python/simulation/test_RunPlan.py @@ -10,7 +10,7 @@ def test_constructor(self): model = pyflamegpu.ModelDescription("test") plan = None plan = pyflamegpu.RunPlan(model) - assert plan != None + assert plan is not None plan = None def test_setRandomSimulationSeed(self): diff --git a/tests/python/simulation/test_RunPlanVector.py b/tests/python/simulation/test_RunPlanVector.py index 1b913801b..bd41a0de0 100644 --- a/tests/python/simulation/test_RunPlanVector.py +++ b/tests/python/simulation/test_RunPlanVector.py @@ -23,7 +23,7 @@ def test_constructor(self): # Use New initialLength = 4 plans = pyflamegpu.RunPlanVector(model, initialLength) - assert plans != None + assert plans is not None assert plans.size() == initialLength # Run the destructor plans = None diff --git a/tests/python/simulation/test_cuda_ensemble.py b/tests/python/simulation/test_cuda_ensemble.py index 7ecd61331..288772875 100644 --- a/tests/python/simulation/test_cuda_ensemble.py +++ b/tests/python/simulation/test_cuda_ensemble.py @@ -72,7 +72,7 @@ def test_constructor(self): # Use the ctor # explicit CUDAEnsemble(const ModelDescription& model, int argc = 0, const char** argv = None) ensemble = pyflamegpu.CUDAEnsemble(model, []) - assert ensemble != None + assert ensemble is not None # Check a property assert ensemble.Config().timing == False # Run the destructor ~CUDAEnsemble