Skip to content

Commit 4a54f89

Browse files
authored
Merge pull request #18 from greut/pytest
Replace nose with pytest.
2 parents 2de337f + 216937b commit 4a54f89

File tree

4 files changed

+21
-6
lines changed

4 files changed

+21
-6
lines changed

Diff for: .travis.yml

+4-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@ cache:
4242
language: python
4343
python:
4444
- "2.7"
45-
- "3.2"
4645
- "3.3"
4746
- "3.4"
4847
- "3.5"
@@ -51,6 +50,10 @@ python:
5150
- "pypy"
5251
- "pypy3"
5352

53+
matrix:
54+
allow_failures:
55+
- python: nightly
56+
5457
install:
5558
- pip install tox tox-travis
5659

Diff for: setup.cfg

+3
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,5 @@
1+
[aliases]
2+
test=pytest
3+
14
[bdist_wheel]
25
universal=1

Diff for: setup.py

+8-2
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,14 @@
1818
with open(path.join(here, 'pyvips', 'version.py'), encoding='utf-8') as f:
1919
exec(f.read(), info)
2020

21+
setup_deps = [
22+
'pytest-runner'
23+
]
24+
2125
test_deps = [
22-
'nose',
23-
'flake8'
26+
'pytest',
27+
'pytest-catchlog',
28+
'pytest-flake8'
2429
]
2530

2631
extras = {
@@ -63,6 +68,7 @@
6368

6469
install_requires=['cffi'],
6570

71+
setup_requires=setup_deps,
6672
tests_require=test_deps,
6773
extras_require=extras,
6874

Diff for: tox.ini

+6-3
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,17 @@ envlist =
1010
python =
1111
3.6: doc
1212

13+
[pytest]
14+
addopts=--verbose
15+
log_level=WARNING
16+
1317
[testenv]
1418
setenv =
1519
PYTHONPATH = {toxinidir}:{toxinidir}
1620

1721
commands =
18-
tests: pip install -e .[test]
19-
tests: nosetests --logging-level=WARNING
22+
test: python setup.py test
2023
qa: pip install -e .[test]
21-
qa: flake8
24+
qa: pytest --flake8
2225
doc: pip install -e .[doc]
2326
doc: sphinx-build -n -b html doc doc/build/html

0 commit comments

Comments
 (0)