Skip to content

Commit 2de53a6

Browse files
authored
Merge pull request #266 from nicoddemus/gh-actions
2 parents fa1b32e + 887d6b8 commit 2de53a6

File tree

6 files changed

+22
-115
lines changed

6 files changed

+22
-115
lines changed

.appveyor.yml

-29
This file was deleted.

.github/workflows/main.yml

+6-6
Original file line numberDiff line numberDiff line change
@@ -14,17 +14,17 @@ jobs:
1414
os: [ubuntu-latest, windows-latest]
1515
include:
1616
- python: "2.7"
17-
tox_env: "py27-pytest31"
17+
tox_env: "py27-pytest30"
1818
- python: "3.5"
19-
tox_env: "py35-pytest31"
19+
tox_env: "py35-pytest30"
2020
- python: "3.6"
21-
tox_env: "py36-pytest31"
21+
tox_env: "py36-pytest30"
2222
- python: "3.7"
23-
tox_env: "py37-pytest31"
23+
tox_env: "py37-pytest30"
2424
- python: "3.8"
25-
tox_env: "py38-pytest31"
25+
tox_env: "py38-pytest30"
2626
- python: "pypy3"
27-
tox_env: "pypy3-pytest31"
27+
tox_env: "pypy3-pytest30"
2828

2929
steps:
3030
- uses: actions/checkout@v1

.travis.yml

-68
This file was deleted.

README.rst

+2-5
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,8 @@
77
.. image:: https://img.shields.io/pypi/pyversions/py.svg
88
:target: https://pypi.org/project/py
99

10-
.. image:: https://img.shields.io/travis/pytest-dev/py.svg
11-
:target: https://travis-ci.org/pytest-dev/py
12-
13-
.. image:: https://ci.appveyor.com/api/projects/status/10keglan6uqwj5al/branch/master?svg=true
14-
:target: https://ci.appveyor.com/project/pytestbot/py
10+
.. image:: https://github.com/pytest-dev/py/workflows/build/badge.svg
11+
:target: https://github.com/pytest-dev/py/actions
1512

1613

1714
**NOTE**: this library is in **maintenance mode** and should not be used in new code.

testing/code/test_source.py

+12-6
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ def test_source_strip_multiline():
103103
def test_syntaxerror_rerepresentation():
104104
ex = py.test.raises(SyntaxError, py.code.compile, 'xyz xyz')
105105
assert ex.value.lineno == 1
106-
assert ex.value.offset in (4,7) # XXX pypy/jython versus cpython?
106+
assert ex.value.offset in (5, 7) # pypy/cpython difference
107107
assert ex.value.text.strip(), 'x x'
108108

109109
def test_isparseable():
@@ -510,11 +510,17 @@ def test_comments():
510510
comment 4
511511
"""
512512
'''
513-
for line in range(2,6):
514-
assert str(getstatement(line, source)) == ' x = 1'
515-
for line in range(6,10):
516-
assert str(getstatement(line, source)) == ' assert False'
517-
assert str(getstatement(10, source)) == '"""'
513+
for line in range(2, 6):
514+
assert str(getstatement(line, source)) == " x = 1"
515+
if sys.version_info >= (3, 8) or hasattr(sys, "pypy_version_info"):
516+
tqs_start = 8
517+
else:
518+
tqs_start = 10
519+
assert str(getstatement(10, source)) == '"""'
520+
for line in range(6, tqs_start):
521+
assert str(getstatement(line, source)) == " assert False"
522+
for line in range(tqs_start, 10):
523+
assert str(getstatement(line, source)) == '"""\ncomment 4\n"""'
518524

519525
def test_comment_in_statement():
520526
source = '''test(foo=1,

testing/path/test_local.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -721,8 +721,9 @@ def test_samefile_symlink(tmpdir):
721721
p2 = tmpdir.join("linked.txt")
722722
try:
723723
os.symlink(str(p1), str(p2))
724-
except OSError as e:
724+
except (OSError, NotImplementedError) as e:
725725
# on Windows this might fail if the user doesn't have special symlink permissions
726+
# pypy3 on Windows doesn't implement os.symlink and raises NotImplementedError
726727
pytest.skip(str(e.args[0]))
727728

728729
assert p1.samefile(p2)

0 commit comments

Comments
 (0)