diff options
author | Matthias Goergens <matthias.goergens@gmail.com> | 2023-04-11 19:08:40 +0800 |
---|---|---|
committer | Nikolaus Rath <Nikolaus@rath.org> | 2023-04-11 13:32:00 +0100 |
commit | eb88309882e0d88b726d0b1c3f4fb1ee7f56bd39 (patch) | |
tree | 989354ce8c60042825c4b134aba03372a0702b72 /test/test_examples.py | |
parent | 04215e9a9018910a21702c8fb4cc51d95f2f5eef (diff) | |
download | libfuse-eb88309882e0d88b726d0b1c3f4fb1ee7f56bd39.tar.gz |
Migrate away from deprecated distutils
Before:
```
=============================== warnings summary ===============================
test/test_ctests.py:12
/tmp/libfuse-build-mB50ZC/build-gcc-9/test/test_ctests.py:12: DeprecationWarning: The distutils package is deprecated and slated for removal in Python 3.12. Use setuptools or check PEP 632 for potential alternatives
from distutils.version import LooseVersion
-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
```
Diffstat (limited to 'test/test_examples.py')
-rwxr-xr-x | test/test_examples.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/test_examples.py b/test/test_examples.py index 7df9ba4..a7ba998 100755 --- a/test/test_examples.py +++ b/test/test_examples.py @@ -18,7 +18,7 @@ import time import errno import sys import platform -from distutils.version import LooseVersion +from looseversion import LooseVersion from tempfile import NamedTemporaryFile from contextlib import contextmanager from util import (wait_for_mount, umount, cleanup, base_cmdline, |