diff options
| author | 2025-03-15 18:05:22 -0400 | |
|---|---|---|
| committer | 2025-03-15 18:05:22 -0400 | |
| commit | 4d0259149eb03b21716dbde6174f36d65c57c66c (patch) | |
| tree | 1e314b7849c4be1683809426d563a69a8131c13d /test/test_results.py | |
| parent | d178d764c9cc19aef1a5cf012e3ca4c3b957879f (diff) | |
| parent | 8026a3c45446030d7af524bfc487d3462c8114ef (diff) | |
Update upstream source from tag 'upstream/1.29.2'
Update to upstream version '1.29.2'
with Debian dir a3b673d57d2a397548e1a0eb8d7a7401e09e1234
Diffstat (limited to 'test/test_results.py')
| -rw-r--r-- | test/test_results.py | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/test/test_results.py b/test/test_results.py index c3b9b2d..3136743 100644 --- a/test/test_results.py +++ b/test/test_results.py @@ -106,6 +106,10 @@ class TestExtractorResults(unittest.TestCase): if len(result) <= 2: return # only matching + skip = result.pop("#skip", False) + if skip: + return self._skipped.append((result["#url"], skip)) + if auth is None: auth = (cat in AUTH_REQUIRED) elif not auth: @@ -237,7 +241,10 @@ class TestExtractorResults(unittest.TestCase): elif isinstance(test, range): self.assertRange(value, test, msg=path) elif isinstance(test, set): - self.assertTrue(value in test or type(value) in test, msg=path) + try: + self.assertIn(value, test, msg=path) + except AssertionError: + self.assertIn(type(value), test, msg=path) elif isinstance(test, list): subtest = False for idx, item in enumerate(test): |
