From 2b1524b5d986314cf89a99b06e75f9ca6071d0e6 Mon Sep 17 00:00:00 2001 From: Griatch Date: Sun, 7 Apr 2024 10:16:11 +0200 Subject: [PATCH] Test unittest with isNot assert, to see if it matters --- evennia/contrib/base_systems/components/tests.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/evennia/contrib/base_systems/components/tests.py b/evennia/contrib/base_systems/components/tests.py index 75e169b825..57d072b8f7 100644 --- a/evennia/contrib/base_systems/components/tests.py +++ b/evennia/contrib/base_systems/components/tests.py @@ -268,7 +268,7 @@ class TestComponents(EvenniaTest): def test_mutables_are_not_shared_when_autocreate(self): self.char1.test_a.my_list.append(1) - self.assertNotEqual(id(self.char1.test_a.my_list), id(self.char2.test_a.my_list)) + self.assertIsNot(self.char1.test_a.my_list, self.char2.test_a.my_list) def test_replacing_class_component_slot_with_runtime_component(self): self.char1.components.add_default("replacement_inherited_test_a")