]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
test-udev: skip test on python3.6
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Mon, 8 May 2023 09:38:25 +0000 (11:38 +0200)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Tue, 9 May 2023 06:11:10 +0000 (08:11 +0200)
test/test-udev.py

index 86937205de6f7a1051d100a188a2ea84390e97d2..7e9afc4fc8a1fae89aa71bbd7ffdceb3af0bb912 100755 (executable)
@@ -19,7 +19,6 @@
 # removes the device node. After creation and removal the result is checked
 # against the expected value and the result is printed.
 
-import dataclasses
 import functools
 import os
 import pwd, grp
@@ -33,6 +32,7 @@ from pathlib import Path
 from typing import Callable, Optional
 
 try:
+    import dataclasses  # requires Python >= 3.7
     import pytest
 except ImportError as e:
     print(str(e), file=sys.stderr)