Description: Replace distutils' StrictVersion
 In python 3.12, distutil was removed. Replace distutilx.version.StrictVersion
 with packaging.version's Version
Author: Andreas Hasenack <andreas@canonical.com>
Origin: vendor
Bug-Ubuntu: https://bugs.launchpad.net/ubuntu/+source/python-sparkpost/+bug/2054309
Last-Update: 2024-02-19
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
diff --git a/test/django/utils.py b/test/django/utils.py
index bdef7e7..12b0cf3 100644
--- a/test/django/utils.py
+++ b/test/django/utils.py
@@ -1,7 +1,7 @@
-from distutils.version import StrictVersion
+from packaging.version import Version
 
 from django import get_version
 
 
 def at_least_version(version):
-    return StrictVersion(get_version()) > StrictVersion(version)
+    return Version(get_version()) > Version(version)
