mirror of
https://github.com/Abdess/retroarch_system.git
synced 2026-10-18 09:23:26 -05:00
fix: skip the citation checks without jsonschema
The doubled-path tests import validate_schemas, which needs jsonschema; without it the suite erred instead of skipping, which the optional dependency check refuses.
This commit is contained in:
1 parent
e9da4d72ed
commit
cab70e16b3
1 file changed
+1
-1
@@ -310,6 +310,7 @@ class UnreachableCitationRegressions(unittest.TestCase):
|
||||
self.assertEqual(errors, [])
|
||||
|
||||
|
||||
@unittest.skipUnless(HAS_JSONSCHEMA, "validate_schemas needs jsonschema")
|
||||
class DoubledCitationPaths(unittest.TestCase):
|
||||
"""primehack cited Source/Core/Core/IOS/USB/Bluetooth/ twice in a row in a
|
||||
comment: no revision holds that path, and the parsed document never
|
||||
@@ -335,7 +336,6 @@ class DoubledCitationPaths(unittest.TestCase):
|
||||
with self.subTest(citation=good):
|
||||
self.assertFalse(self._hits(good))
|
||||
|
||||
@unittest.skipUnless(HAS_JSONSCHEMA, "validating a schema needs jsonschema")
|
||||
def test_the_corpus_carries_none(self):
|
||||
import validate_schemas
|
||||
|
||||
|
||||
Reference in new issue
Block a user