Skip to content

Commit

Permalink
Merge pull request #2492 from kalekundert/features
Browse files Browse the repository at this point in the history
Add support for numpy arrays (and dicts) to approx.
  • Loading branch information
RonnyPfannschmidt authored Jul 6, 2017
2 parents b62aef3 + 7a1a439 commit ef62b86
Show file tree
Hide file tree
Showing 8 changed files with 456 additions and 176 deletions.
2 changes: 2 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,11 @@ env:
- TOXENV=py27-pexpect
- TOXENV=py27-xdist
- TOXENV=py27-trial
- TOXENV=py27-numpy
- TOXENV=py35-pexpect
- TOXENV=py35-xdist
- TOXENV=py35-trial
- TOXENV=py35-numpy
- TOXENV=py27-nobyte
- TOXENV=doctesting
- TOXENV=freeze
Expand Down
3 changes: 2 additions & 1 deletion _pytest/compat.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,7 @@ def isclass(object):
if _PY3:
import codecs
imap = map
izip = zip
STRING_TYPES = bytes, str
UNICODE_TYPES = str,

Expand Down Expand Up @@ -160,7 +161,7 @@ def _escape_strings(val):
STRING_TYPES = bytes, str, unicode
UNICODE_TYPES = unicode,

from itertools import imap # NOQA
from itertools import imap, izip # NOQA

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

0 comments on commit ef62b86

Please sign in to comment.