| 1 |
Description: skip test, when path does not exist |
| 2 |
Author: Martin <[email protected]> |
| 3 |
Origin: vendor |
| 4 |
Last-Update: 2026-05-14 |
| 5 |
--- |
| 6 |
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/ |
| 7 |
--- a/test/common/classes.py |
| 8 |
+++ b/test/common/classes.py |
| 9 |
@@ -7,6 +7,7 @@ |
| 10 |
import enum |
| 11 |
import json |
| 12 |
import pathlib |
| 13 |
+import unittest |
| 14 |
|
| 15 |
import attr |
| 16 |
|
| 17 |
@@ -765,6 +766,8 @@ |
| 18 |
self.setUpPyfakefs() |
| 19 |
|
| 20 |
self.__certs_dir = pathlib.PurePath(__file__).parent.parent / 'common' / 'certs' |
| 21 |
+ if not (pathlib.Path(__file__).parent.parent / 'common' / 'certs').exists(): |
| 22 |
+ raise unittest.SkipTest("path not present") |
| 23 |
self.fs.add_real_directory(str(self.__certs_dir)) |
| 24 |
|
| 25 |
def _get_pem_str(self, public_key_file_name): |