Skip to content

Commit e83fa48

Browse files
nicoddemusasottile
authored andcommitted
Merge pull request #7179 from asottile/py39
1 parent c53d52c commit e83fa48

File tree

4 files changed

+16
-3
lines changed

4 files changed

+16
-3
lines changed

.github/workflows/main.yml

+11
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ jobs:
3939
"ubuntu-py37-pluggy",
4040
"ubuntu-py37-freeze",
4141
"ubuntu-py38",
42+
"ubuntu-py39",
4243
"ubuntu-pypy3",
4344

4445
"macos-py37",
@@ -98,6 +99,10 @@ jobs:
9899
python: "3.8"
99100
os: ubuntu-latest
100101
tox_env: "py38-xdist"
102+
- name: "ubuntu-py39"
103+
python: "3.8"
104+
os: ubuntu-latest
105+
tox_env: "py39-xdist"
101106
- name: "ubuntu-pypy3"
102107
python: "pypy3"
103108
os: ubuntu-latest
@@ -133,6 +138,12 @@ jobs:
133138
uses: actions/setup-python@v1
134139
with:
135140
python-version: ${{ matrix.python }}
141+
- name: install python3.9
142+
if: matrix.tox_env == 'py39-xdist'
143+
run: |
144+
sudo add-apt-repository ppa:deadsnakes/nightly
145+
sudo apt-get update
146+
sudo apt-get install -y --no-install-recommends python3.9-dev python3.9-distutils
136147
- name: Install dependencies
137148
run: |
138149
python -m pip install --upgrade pip

setup.cfg

+1
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ classifiers =
2626
Programming Language :: Python :: 3.6
2727
Programming Language :: Python :: 3.7
2828
Programming Language :: Python :: 3.8
29+
Programming Language :: Python :: 3.9
2930
platforms = unix, linux, osx, cygwin, win32
3031

3132
[options]

testing/code/test_source.py

+3-2
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,8 @@ def test_syntaxerror_rerepresentation() -> None:
122122
assert ex is not None
123123
assert ex.value.lineno == 1
124124
assert ex.value.offset in {5, 7} # cpython: 7, pypy3.6 7.1.1: 5
125-
assert ex.value.text == "xyz xyz\n"
125+
assert ex.value.text
126+
assert ex.value.text.rstrip("\n") == "xyz xyz"
126127

127128

128129
def test_isparseable() -> None:
@@ -521,7 +522,7 @@ class A:
521522
class B:
522523
pass
523524

524-
B.__name__ = "B2"
525+
B.__name__ = B.__qualname__ = "B2"
525526
assert getfslineno(B)[1] == -1
526527

527528
co = compile("...", "", "eval")

tox.ini

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ envlist =
99
py36
1010
py37
1111
py38
12-
pypy
12+
py39
1313
pypy3
1414
py37-{pexpect,xdist,unittestextras,numpy,pluggymaster}
1515
doctesting

0 commit comments

Comments
 (0)