Skip to content
This repository was archived by the owner on May 11, 2023. It is now read-only.

Commit 185112b

Browse files
authored
Merge pull request python-openapi#11 from felixonmars/patch-1
Fix mock import in Python 3.x
2 parents 89fea04 + a66c5b2 commit 185112b

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

tests/integration/test_validators.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,14 @@
11
from jsonschema import ValidationError
2-
import mock
32
import pytest
43
from six import u
54

65
from openapi_schema_validator import OAS30Validator, oas30_format_checker
76

7+
try:
8+
from unittest import mock
9+
except ImportError:
10+
import mock
11+
812

913
class TestOAS30ValidatorValidate(object):
1014

0 commit comments

Comments
 (0)