Skip to content

Commit 7927dff

Browse files
authored
Merge pull request #1678 from RonnyPfannschmidt/drop-python30-32
drop python 3.0-3.2 support code from setup.py
2 parents ccd395f + 1451a1a commit 7927dff

File tree

5 files changed

+11
-13
lines changed

5 files changed

+11
-13
lines changed

CHANGELOG.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,12 @@
2727

2828
Thanks to `@RedBeardCode`_ for the PR(`#1664`_)
2929

30+
* removed support code for python 3 < 3.3 addressing (`#1627`_)
3031

3132
.. _#607: https://github.com/pytest-dev/pytest/issues/607
3233
.. _#1519: https://github.com/pytest-dev/pytest/pull/1519
3334
.. _#1664: https://github.com/pytest-dev/pytest/pull/1664
35+
.. _#1627: https://github.com/pytest-dev/pytest/pull/1627
3436

3537

3638
2.10.0.dev1

README.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
:target: https://ci.appveyor.com/project/pytestbot/pytest
1818

1919
The ``pytest`` framework makes it easy to write small tests, yet
20-
scales to support complex functional testing for applications and libraries.
20+
scales to support complex functional testing for applications and libraries.
2121

2222
An example of a simple test:
2323

@@ -35,7 +35,7 @@ To execute it::
3535

3636
$ pytest
3737
======= test session starts ========
38-
platform linux -- Python 3.4.3, pytest-2.8.5, py-1.4.31, pluggy-0.3.1
38+
platform linux -- Python 3.4.3, pytest-2.8.5, py-1.4.31, pluggy-0.3.1
3939
collected 1 items
4040

4141
test_sample.py F
@@ -52,7 +52,7 @@ To execute it::
5252
======= 1 failed in 0.12 seconds ========
5353

5454
Due to ``pytest``'s detailed assertion introspection, only plain ``assert`` statements are used. See `getting-started <http://pytest.org/latest/getting-started.html#our-first-test-run>`_ for more examples.
55-
55+
5656

5757
Features
5858
--------
@@ -69,7 +69,7 @@ Features
6969
- Can run `unittest <http://pytest.org/latest/unittest.html>`_ (or trial),
7070
`nose <http://pytest.org/latest/nose.html>`_ test suites out of the box;
7171

72-
- Python2.6+, Python3.2+, PyPy-2.3, Jython-2.5 (untested);
72+
- Python2.6+, Python3.3+, PyPy-2.3, Jython-2.5 (untested);
7373

7474
- Rich plugin architecture, with over 150+ `external plugins <http://pytest.org/latest/plugins.html#installing-external-plugins-searching>`_ and thriving community;
7575

doc/en/index.rst

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ pytest: helps you write better programs
66

77
**a mature full-featured Python testing tool**
88

9-
- runs on Posix/Windows, Python 2.6-3.5, PyPy and (possibly still) Jython-2.5.1
9+
- runs on Posix/Windows, Python 2.6, 2.7 and 3.3-3.5, PyPy and (possibly still) Jython-2.5.1
1010
- free and open source software, distributed under the terms of the :ref:`MIT license <license>`
1111
- **well tested** with more than a thousand tests against itself
1212
- **strict backward compatibility policy** for safe pytest upgrades
@@ -57,5 +57,3 @@ pytest: helps you write better programs
5757

5858

5959
.. _`easy`: http://bruynooghe.blogspot.com/2009/12/skipping-slow-test-by-default-in-pytest.html
60-
61-

setup.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
'Topic :: Software Development :: Libraries',
1414
'Topic :: Utilities'] + [
1515
('Programming Language :: Python :: %s' % x) for x in
16-
'2 2.6 2.7 3 3.2 3.3 3.4 3.5'.split()]
16+
'2 2.6 2.7 3 3.3 3.4 3.5'.split()]
1717

1818
with open('README.rst') as fd:
1919
long_description = fd.read()
@@ -51,10 +51,10 @@ def main():
5151
install_requires = ['py>=1.4.29'] # pluggy is vendored in _pytest.vendored_packages
5252
extras_require = {}
5353
if has_environment_marker_support():
54-
extras_require[':python_version=="2.6" or python_version=="3.0" or python_version=="3.1"'] = ['argparse']
54+
extras_require[':python_version=="2.6"'] = ['argparse']
5555
extras_require[':sys_platform=="win32"'] = ['colorama']
5656
else:
57-
if sys.version_info < (2, 7) or (3,) <= sys.version_info < (3, 2):
57+
if sys.version_info < (2, 7):
5858
install_requires.append('argparse')
5959
if sys.platform == 'win32':
6060
install_requires.append('colorama')

testing/code/test_source.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -385,8 +385,7 @@ def g():
385385
lines = deindent(source.splitlines())
386386
assert lines == ['', 'def f():', ' def g():', ' pass', ' ']
387387

388-
@pytest.mark.xfail("sys.version_info[:3] < (2,7,0) or "
389-
"((3,0) <= sys.version_info[:2] < (3,2))")
388+
@pytest.mark.xfail("sys.version_info[:3] < (2,7,0)")
390389
def test_source_of_class_at_eof_without_newline(tmpdir):
391390
# this test fails because the implicit inspect.getsource(A) below
392391
# does not return the "x = 1" last line.
@@ -656,4 +655,3 @@ def XXX_test_expression_multiline():
656655
'''"""
657656
result = getstatement(1, source)
658657
assert str(result) == "'''\n'''"
659-

0 commit comments

Comments
 (0)