summary refs log tree commit diff
path: root/tests/rest/client/test_upgrade_room.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/rest/client/test_upgrade_room.py')
-rw-r--r--tests/rest/client/test_upgrade_room.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/rest/client/test_upgrade_room.py b/tests/rest/client/test_upgrade_room.py
index 5ec343dd7f..0b4c691318 100644
--- a/tests/rest/client/test_upgrade_room.py
+++ b/tests/rest/client/test_upgrade_room.py
@@ -84,7 +84,7 @@ class UpgradeRoomTest(unittest.HomeserverTestCase):
                 self.room_id, EventTypes.Tombstone, ""
             )
         )
-        self.assertIsNotNone(tombstone_event)
+        assert tombstone_event is not None
         self.assertEqual(new_room_id, tombstone_event.content["replacement_room"])
 
         # Check that the new room exists.