summary refs log tree commit diff
path: root/tests
diff options
context:
space:
mode:
authorEric Eastwood <erice@element.io>2023-07-05 18:45:42 -0500
committerGitHub <noreply@github.com>2023-07-05 18:45:42 -0500
commit561d06b481176f61ed12f5a4723b127ff8624662 (patch)
treedd8698aac20317b551250e90c28dd5dc5c3e8042 /tests
parentAdd basic read/write lock (#15782) (diff)
downloadsynapse-561d06b481176f61ed12f5a4723b127ff8624662.tar.xz
Remove support for Python 3.7 (#15851)
Fix https://github.com/matrix-org/synapse/issues/15836
Diffstat (limited to 'tests')
-rw-r--r--tests/metrics/test_metrics.py10
1 files changed, 2 insertions, 8 deletions
diff --git a/tests/metrics/test_metrics.py b/tests/metrics/test_metrics.py
index 7c3656d049..d14876826c 100644
--- a/tests/metrics/test_metrics.py
+++ b/tests/metrics/test_metrics.py
@@ -12,19 +12,13 @@
 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 # See the License for the specific language governing permissions and
 # limitations under the License.
+from importlib import metadata
 from typing import Dict, Tuple
-
-from typing_extensions import Protocol
-
-try:
-    from importlib import metadata
-except ImportError:
-    import importlib_metadata as metadata  # type: ignore[no-redef]
-
 from unittest.mock import patch
 
 from pkg_resources import parse_version
 from prometheus_client.core import Sample
+from typing_extensions import Protocol
 
 from synapse.app._base import _set_prometheus_client_use_created_metrics
 from synapse.metrics import REGISTRY, InFlightGauge, generate_latest