Skip to content

Commit e63b269

Browse files
Talha MalikTalha Malik
Talha Malik
authored and
Talha Malik
committed
Add mock for pypy
1 parent 319009e commit e63b269

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

jsonschema/tests/test_cli.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,10 @@
1-
from unittest import TestCase, mock
1+
from unittest import TestCase
2+
3+
try:
4+
from unittest import mock
5+
except ImportError:
6+
from mock import mock
7+
28
import json
39
import subprocess
410
import sys

tox.ini

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ deps =
5555
perf: pyperf
5656

5757
tests,tests_nongpl,coverage,codecov: -r{toxinidir}/test-requirements.txt
58+
pypy: mock
5859

5960
coverage,codecov: coverage
6061
codecov: codecov

0 commit comments

Comments
 (0)