Skip to content

Commit 8cd5e63

Browse files
authored
Merge pull request #358 from eriknw/fix/ensure_easy_testing
Fix/ensure easy testing
2 parents 70429bb + 6af6d30 commit 8cd5e63

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

.travis.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ env:
1313

1414
# command to install dependencies
1515
install:
16-
- pip install coverage pep8
16+
- pip install coverage pep8 pytest
1717

1818
# command to run tests
1919
# require 100% coverage (not including test files) to pass Travis CI test
@@ -24,6 +24,10 @@ script:
2424
--with-doctest toolz/
2525
- if [[ $TRAVIS_PYTHON_VERSION != pypy* ]]; then coverage report --show-missing --fail-under=100 ; fi
2626
- if [[ $TRAVIS_PYTHON_VERSION != pypy* ]]; then pep8 --ignore=$PEP8_IGNORE --exclude=conf.py,tests,examples,bench -r --show-source . ; fi
27+
# For convenience, make sure simple test commands work
28+
- python setup.py develop
29+
- py.test
30+
- nosetests
2731

2832
# load coverage status to https://coveralls.io
2933
after_success:

toolz/tests/test_serialization.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
from toolz import *
22
import toolz
3-
import toolz.curried.exceptions
3+
import toolz.curried
44
import pickle
55
from toolz.compatibility import PY3, PY33, PY34
66
from toolz.utils import raises
@@ -62,8 +62,8 @@ def test_flip():
6262

6363
def test_curried_exceptions():
6464
# This tests a global curried object that isn't defined in toolz.functoolz
65-
merge = pickle.loads(pickle.dumps(toolz.curried.exceptions.merge))
66-
assert merge is toolz.curried.exceptions.merge
65+
merge = pickle.loads(pickle.dumps(toolz.curried.merge))
66+
assert merge is toolz.curried.merge
6767

6868

6969
@toolz.curry

0 commit comments

Comments
 (0)