Skip to content

Commit d62fc64

Browse files
authored
Merge pull request #25 from hugovk/rm-2.6
Drop support for EOL Python 2.6
2 parents b265811 + 11e6778 commit d62fc64

File tree

7 files changed

+19
-24
lines changed

7 files changed

+19
-24
lines changed

.travis.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
language: python
22
python:
33
- "2.7"
4-
- "2.6"
54
- "3.4"
65
- "3.5"
76
- "3.6"

README.rst

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
pytest-twisted - test twisted code with pytest
55
==============================================================================
66

7-
|Travis|_ |AppVeyor|_ |Pythons|
7+
|PyPI| |Pythons| |Travis| |AppVeyor|
88

99
:Authors: Ralf Schmitt, Kyle Altendorf, Victor Titor
1010
:Version: 1.7.1
@@ -88,15 +88,20 @@ corotwine work with pytest-twisted::
8888
That's all.
8989

9090

91+
.. |PyPI| image:: https://img.shields.io/pypi/v/pytest-twisted.svg
92+
:alt: PyPI version
93+
:target: https://pypi.python.org/pypi/pytest-twisted
94+
95+
.. |Pythons| image:: https://img.shields.io/pypi/pyversions/pytest-twisted.svg
96+
:alt: Supported Python versions
97+
:target: https://pypi.python.org/pypi/pytest-twisted
98+
9199
.. |Travis| image:: https://travis-ci.org/pytest-dev/pytest-twisted.svg?branch=master
92100
:alt: Travis build status
93-
.. _Travis: https://travis-ci.org/pytest-dev/pytest-twisted
101+
:target: https://travis-ci.org/pytest-dev/pytest-twisted
94102

95103
.. |AppVeyor| image:: https://ci.appveyor.com/api/projects/status/us5l0l9p7hyp2k6x/branch/master?svg=true
96104
:alt: AppVeyor build status
97-
.. _AppVeyor: https://ci.appveyor.com/project/vtitor/pytest-twisted
98-
99-
.. |Pythons| image:: https://img.shields.io/pypi/pyversions/pytest-twisted.svg
100-
:alt: supported Python versions
105+
:target: https://ci.appveyor.com/project/vtitor/pytest-twisted
101106

102107
.. _guide: CONTRIBUTING.rst

appveyor.yml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,6 @@ environment:
22
VENV: "%APPVEYOR_BUILD_FOLDER%\\venv"
33

44
matrix:
5-
- TOXENV: py26
6-
PYTHON: "C:\\Python26"
7-
8-
- TOXENV: py26
9-
PYTHON: "C:\\Python26-x64"
10-
115
- TOXENV: py27
126
PYTHON: "C:\\Python27"
137

pytest_twisted.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ class _instances:
2323

2424

2525
def pytest_namespace():
26-
return dict(inlineCallbacks=inlineCallbacks, blockon=blockon)
26+
return {'inlineCallbacks': inlineCallbacks, 'blockon': blockon}
2727

2828

2929
def blockon(d):
@@ -172,7 +172,7 @@ def _install_reactor(reactor_installer, reactor_type):
172172
import twisted.internet.reactor
173173
if not isinstance(twisted.internet.reactor, reactor_type):
174174
raise WrongReactorAlreadyInstalledError(
175-
'expected {0} but found {1}'.format(
175+
'expected {} but found {}'.format(
176176
reactor_type,
177177
type(twisted.internet.reactor),
178178
)

setup.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@
2020
'Programming Language :: Python',
2121
'Topic :: Software Development :: Testing',
2222
'Programming Language :: Python :: 2',
23-
'Programming Language :: Python :: 2.6',
2423
'Programming Language :: Python :: 2.7',
2524
'Programming Language :: Python :: 3',
2625
'Programming Language :: Python :: 3.4',

testing/test_basic.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,9 @@ def format_run_result_output_for_assert(run_result):
2222
return textwrap.dedent('''\
2323
2424
---- stdout
25-
{0}
25+
{}
2626
---- stderr
27-
{1}
27+
{}
2828
----''').format(
2929
run_result.stdout.str(),
3030
run_result.stderr.str(),
@@ -35,7 +35,7 @@ def skip_if_reactor_not(expected_reactor):
3535
actual_reactor = pytest.config.getoption('reactor')
3636
return pytest.mark.skipif(
3737
actual_reactor != expected_reactor,
38-
reason='reactor is {0} not {1}'.format(
38+
reason='reactor is {} not {}'.format(
3939
actual_reactor,
4040
expected_reactor,
4141
),

tox.ini

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,15 @@
11
[tox]
22
envlist=
3-
py{26,27,34}-defaultreactor
3+
py{27,34}-defaultreactor
44
py{35,36}-{default,qt5}reactor
55
linting
66

77

88
[testenv]
99
deps=
1010
greenlet
11-
py26: pytest<3.3
12-
py{27,34,35,36}: pytest
13-
py26: twisted<15.5
14-
py{27,34,35,36}: twisted
11+
pytest
12+
twisted
1513
qt5reactor: pytest-qt
1614
qt5reactor: qt5reactor
1715
qt5reactor: pytest-xvfb

0 commit comments

Comments
 (0)