Skip to content

Commit

Permalink
Merge pull request #7188 from asottile/backport_7179
Browse files Browse the repository at this point in the history
  • Loading branch information
nicoddemus committed May 8, 2020
2 parents fc27171 + e83fa48 commit 25b53c4
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 3 deletions.
11 changes: 11 additions & 0 deletions .github/workflows/main.yml
Expand Up @@ -39,6 +39,7 @@ jobs:
"ubuntu-py37-pluggy",
"ubuntu-py37-freeze",
"ubuntu-py38",
"ubuntu-py39",
"ubuntu-pypy3",

"macos-py37",
Expand Down Expand Up @@ -98,6 +99,10 @@ jobs:
python: "3.8"
os: ubuntu-latest
tox_env: "py38-xdist"
- name: "ubuntu-py39"
python: "3.8"
os: ubuntu-latest
tox_env: "py39-xdist"
- name: "ubuntu-pypy3"
python: "pypy3"
os: ubuntu-latest
Expand Down Expand Up @@ -133,6 +138,12 @@ jobs:
uses: actions/setup-python@v1
with:
python-version: ${{ matrix.python }}
- name: install python3.9
if: matrix.tox_env == 'py39-xdist'
run: |
sudo add-apt-repository ppa:deadsnakes/nightly
sudo apt-get update
sudo apt-get install -y --no-install-recommends python3.9-dev python3.9-distutils
- name: Install dependencies
run: |
python -m pip install --upgrade pip
Expand Down
1 change: 1 addition & 0 deletions setup.cfg
Expand Up @@ -26,6 +26,7 @@ classifiers =
Programming Language :: Python :: 3.6
Programming Language :: Python :: 3.7
Programming Language :: Python :: 3.8
Programming Language :: Python :: 3.9
platforms = unix, linux, osx, cygwin, win32

[options]
Expand Down
5 changes: 3 additions & 2 deletions testing/code/test_source.py
Expand Up @@ -122,7 +122,8 @@ def test_syntaxerror_rerepresentation() -> None:
assert ex is not None
assert ex.value.lineno == 1
assert ex.value.offset in {5, 7} # cpython: 7, pypy3.6 7.1.1: 5
assert ex.value.text == "xyz xyz\n"
assert ex.value.text
assert ex.value.text.rstrip("\n") == "xyz xyz"


def test_isparseable() -> None:
Expand Down Expand Up @@ -521,7 +522,7 @@ class A:
class B:
pass

B.__name__ = "B2"
B.__name__ = B.__qualname__ = "B2"
assert getfslineno(B)[1] == -1

co = compile("...", "", "eval")
Expand Down
2 changes: 1 addition & 1 deletion tox.ini
Expand Up @@ -9,7 +9,7 @@ envlist =
py36
py37
py38
pypy
py39
pypy3
py37-{pexpect,xdist,unittestextras,numpy,pluggymaster}
doctesting
Expand Down

0 comments on commit 25b53c4

Please sign in to comment.