Skip to content

Commit ef62b86

Browse files
Merge pull request #2492 from kalekundert/features
Add support for numpy arrays (and dicts) to approx.
2 parents b62aef3 + 7a1a439 commit ef62b86

File tree

8 files changed

+456
-176
lines changed

8 files changed

+456
-176
lines changed

.travis.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,11 @@ env:
2020
- TOXENV=py27-pexpect
2121
- TOXENV=py27-xdist
2222
- TOXENV=py27-trial
23+
- TOXENV=py27-numpy
2324
- TOXENV=py35-pexpect
2425
- TOXENV=py35-xdist
2526
- TOXENV=py35-trial
27+
- TOXENV=py35-numpy
2628
- TOXENV=py27-nobyte
2729
- TOXENV=doctesting
2830
- TOXENV=freeze

_pytest/compat.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,7 @@ def isclass(object):
125125
if _PY3:
126126
import codecs
127127
imap = map
128+
izip = zip
128129
STRING_TYPES = bytes, str
129130
UNICODE_TYPES = str,
130131

@@ -160,7 +161,7 @@ def _escape_strings(val):
160161
STRING_TYPES = bytes, str, unicode
161162
UNICODE_TYPES = unicode,
162163

163-
from itertools import imap # NOQA
164+
from itertools import imap, izip # NOQA
164165

165166
def _escape_strings(val):
166167
"""In py2 bytes and str are the same type, so return if it's a bytes

0 commit comments

Comments
 (0)