Skip to content

Commit 10e40cb

Browse files
authored
Merge pull request #513 from eriknw/py10
Support Python 3.10 by adding `anext` signature.
2 parents e9bc1e1 + aa62bea commit 10e40cb

File tree

2 files changed

+8
-5
lines changed

2 files changed

+8
-5
lines changed

.travis.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@ python:
55
- "3.6"
66
- "3.7"
77
- "3.8"
8-
- "3.9-dev"
8+
- "3.9"
9+
- "nightly"
910
- "pypy3.5-7.0"
1011
- "pypy3.6-7.1.1"
1112

@@ -24,14 +25,13 @@ install:
2425
# To skip pypy: - if [[ $TRAVIS_PYTHON_VERSION != 'pypy' ]]; then DOSTUFF ; fi
2526
script:
2627
- export MAJOR_PYTHON_VERSION=`echo $TRAVIS_PYTHON_VERSION | cut -c 1`
27-
- coverage run --source=toolz $(which nosetests)
28-
--with-doctest toolz/
28+
- coverage run --source=toolz $(which pytest)
29+
--doctest-modules toolz/
2930
- if [[ $TRAVIS_PYTHON_VERSION != pypy* ]]; then coverage report --show-missing --fail-under=100 ; fi
3031
- if [[ $TRAVIS_PYTHON_VERSION != pypy* ]]; then pep8 --ignore=$PEP8_IGNORE --exclude=conf.py,tests,examples,bench -r --show-source . ; fi
3132
# For convenience, make sure simple test commands work
3233
- python setup.py develop
33-
- py.test
34-
- nosetests
34+
- pytest
3535

3636
# load coverage status to https://coveralls.io
3737
after_success:

toolz/_signatures.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,9 @@
4545
lambda x: None],
4646
all=[
4747
lambda iterable: None],
48+
anext=[
49+
lambda aiterator: None,
50+
lambda aiterator, default: None],
4851
any=[
4952
lambda iterable: None],
5053
apply=[

0 commit comments

Comments
 (0)