Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tests: Workaround for Swig 4.2.1 != None erorrs #1244

Merged
merged 1 commit into from
Oct 28, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion tests/python/simulation/test_RunPlan.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down
2 changes: 1 addition & 1 deletion tests/python/simulation/test_RunPlanVector.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion tests/python/simulation/test_cuda_ensemble.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Loading