forked from pool/python-schema
- version update to 0.7.5 * Full subclass support for nested schemas. * Don't double-format errors. fixes #240 (#247) [Leif Ryge] * Fix "Unknown format code" in Python 3.8 (#245) [Denis Blanchette] * JSON Schema: Allow using $ref when schema is not a dict (#244) [Denis Blanchette] * JSON Schema: Set additionalProperties true when dict contains str as key (#243) [Denis Blanchette] - do not require python-mock for build - added patches fix https://github.com/keleshev/schema/pull/273 + python-schema-no-mock.patch OBS-URL: https://build.opensuse.org/request/show/974858 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-schema?expand=0&rev=11
13 lines
451 B
Diff
13 lines
451 B
Diff
diff -upr schema-0.7.5.orig/test_schema.py schema-0.7.5/test_schema.py
|
|
--- schema-0.7.5.orig/test_schema.py 2022-05-04 11:01:08.770513691 +0200
|
|
+++ schema-0.7.5/test_schema.py 2022-05-04 11:01:08.774513716 +0200
|
|
@@ -10,7 +10,7 @@ from collections import defaultdict, nam
|
|
from functools import partial
|
|
from operator import methodcaller
|
|
|
|
-from mock import Mock
|
|
+from unittest.mock import Mock
|
|
from pytest import mark, raises
|
|
|
|
from schema import (
|