Skip to content

Commit fc0b95d

Browse files
Talha MalikTalha Malik
Talha Malik
authored and
Talha Malik
committed
Add mock for pypy
1 parent f15ccb2 commit fc0b95d

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
@@ -35,6 +35,7 @@ deps =
3535
perf: pyperf
3636

3737
tests,tests_nongpl,coverage,codecov: -r{toxinidir}/test-requirements.txt
38+
pypy: mock
3839

3940
coverage,codecov: coverage
4041
codecov: codecov

0 commit comments

Comments
 (0)