summary refs log tree commit diff
path: root/tests/rest/admin
diff options
context:
space:
mode:
authorMomentQYC <62551256+MomentQYC@users.noreply.github.com>2023-10-02 21:07:53 +0800
committerGitHub <noreply@github.com>2023-10-02 09:07:53 -0400
commit5725712d477e41761aa89a79edd77d613c36a30a (patch)
tree1722027fcfc5232fb830042420008d0f7aff39c8 /tests/rest/admin
parentBump phonenumbers from 8.13.19 to 8.13.22 (#16413) (diff)
downloadsynapse-5725712d477e41761aa89a79edd77d613c36a30a.tar.xz
Remove Python version from `/_synapse/admin/v1/server_version` (#16380)
There's no reason to expose the full Python version over what is
frequently a public API.
Diffstat (limited to 'tests/rest/admin')
-rw-r--r--tests/rest/admin/test_admin.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/tests/rest/admin/test_admin.py b/tests/rest/admin/test_admin.py
index 695e84357a..359d131b37 100644
--- a/tests/rest/admin/test_admin.py
+++ b/tests/rest/admin/test_admin.py
@@ -42,9 +42,7 @@ class VersionTestCase(unittest.HomeserverTestCase):
         channel = self.make_request("GET", self.url, shorthand=False)
 
         self.assertEqual(200, channel.code, msg=channel.json_body)
-        self.assertEqual(
-            {"server_version", "python_version"}, set(channel.json_body.keys())
-        )
+        self.assertEqual({"server_version"}, set(channel.json_body.keys()))
 
 
 class QuarantineMediaTestCase(unittest.HomeserverTestCase):