Skip to content

Commit

Permalink
Remove usage of post-3.5 Python syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
garfieldnate committed Sep 27, 2024
1 parent 4c7574c commit c2e8fe8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Core/ClientSMLSWIG/Python/TestPythonSML.py
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ def test_pass_null_to_WME_constructors(agent):
agent.ExecuteCommandLine("step")

result_string = agent.ExecuteCommandLine("print I2")
failure_message = lambda details: f"❌ Pass null to WME constructors: {details}\nResult string was: " + result_string + "\n"
failure_message = lambda details: "❌ Pass null to WME constructors: " + details + "\nResult string was: " + result_string + "\n"
assert "^foo F1" in result_string, failure_message("CreateIdWME('foo') failed")
assert "^nil F1" in result_string, failure_message("CreateSharedIdWME(None, id_wme) failed")
assert "^nil N1" in result_string, failure_message("CreateIdWME(None) failed")
Expand Down

0 comments on commit c2e8fe8

Please sign in to comment.