Skip to content

Commit 66eaa80

Browse files
authored
test with 3.10 (#91)
* test with 3.10 * use 3.10.0-rc.1 * try just "3.10" * now try 3.10.0-beta.4 * try a new version of actions/setup-python * tweak async test * exclude 3.10+macros from CI
1 parent 6cd3664 commit 66eaa80

File tree

4 files changed

+27
-18
lines changed

4 files changed

+27
-18
lines changed

.codecov.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
coverage:
22
precision: 2
33
range: [95, 100]
4+
status:
5+
patch: false
6+
project: false
47

58
comment:
69
layout: 'header, diff, flags, files, footer'

.github/workflows/ci.yml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
steps:
1616
- uses: actions/checkout@v2
1717

18-
- uses: actions/setup-python@v1
18+
- uses: actions/setup-python@v2
1919
with:
2020
python-version: '3.8'
2121

@@ -31,7 +31,11 @@ jobs:
3131
fail-fast: false
3232
matrix:
3333
os: [ubuntu, macos, windows]
34-
python-version: ['3.6', '3.7', '3.8', '3.9']
34+
python-version: ['3.6', '3.7', '3.8', '3.9', '3.10.0-rc.1']
35+
exclude:
36+
# numpy currently get's upset with macos and python 3.10
37+
- os: macos
38+
python-version: '3.10.0-rc.1'
3539

3640
env:
3741
PYTHON: ${{ matrix.python-version }}
@@ -44,7 +48,7 @@ jobs:
4448
- uses: actions/checkout@v2
4549

4650
- name: set up python
47-
uses: actions/setup-python@v1
51+
uses: actions/setup-python@v2
4852
with:
4953
python-version: ${{ matrix.python-version }}
5054

@@ -89,7 +93,7 @@ jobs:
8993
- uses: actions/checkout@v2
9094

9195
- name: set up python
92-
uses: actions/setup-python@v1
96+
uses: actions/setup-python@v2
9397
with:
9498
python-version: '3.8'
9599

setup.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@
3434
'Programming Language :: Python :: 3.7',
3535
'Programming Language :: Python :: 3.8',
3636
'Programming Language :: Python :: 3.9',
37+
'Programming Language :: Python :: 3.10',
3738
'Intended Audience :: Developers',
3839
'Intended Audience :: Information Technology',
3940
'Intended Audience :: System Administrators',

tests/test_expr_render.py

Lines changed: 15 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ def foobar(a, b, c):
1111
return a + b + c
1212

1313

14-
@pytest.mark.xfail(sys.platform == 'win32', reason='yet unknown windows problem')
14+
@pytest.mark.xfail(sys.platform == 'win32', reason='as yet unknown windows problem')
1515
def test_simple():
1616
a = [1, 2, 3]
1717
v = debug.format(len(a))
@@ -23,7 +23,7 @@ def test_simple():
2323
) == s
2424

2525

26-
@pytest.mark.xfail(sys.platform == 'win32', reason='yet unknown windows problem')
26+
@pytest.mark.xfail(sys.platform == 'win32', reason='as yet unknown windows problem')
2727
def test_subscription():
2828
a = {1: 2}
2929
v = debug.format(a[1])
@@ -34,7 +34,7 @@ def test_subscription():
3434
) == s
3535

3636

37-
@pytest.mark.xfail(sys.platform == 'win32', reason='yet unknown windows problem')
37+
@pytest.mark.xfail(sys.platform == 'win32', reason='as yet unknown windows problem')
3838
def test_exotic_types():
3939
aa = [1, 2, 3]
4040
v = debug.format(
@@ -83,7 +83,7 @@ def test_exotic_types():
8383
) == s
8484

8585

86-
@pytest.mark.xfail(sys.platform == 'win32', reason='yet unknown windows problem')
86+
@pytest.mark.xfail(sys.platform == 'win32', reason='as yet unknown windows problem')
8787
def test_newline():
8888
v = debug.format(
8989
foobar(1, 2, 3))
@@ -95,7 +95,7 @@ def test_newline():
9595
) == s
9696

9797

98-
@pytest.mark.xfail(sys.platform == 'win32', reason='yet unknown windows problem')
98+
@pytest.mark.xfail(sys.platform == 'win32', reason='as yet unknown windows problem')
9999
def test_trailing_bracket():
100100
v = debug.format(
101101
foobar(1, 2, 3)
@@ -108,7 +108,7 @@ def test_trailing_bracket():
108108
) == s
109109

110110

111-
@pytest.mark.xfail(sys.platform == 'win32', reason='yet unknown windows problem')
111+
@pytest.mark.xfail(sys.platform == 'win32', reason='as yet unknown windows problem')
112112
def test_multiline():
113113
v = debug.format(
114114
foobar(1,
@@ -123,7 +123,7 @@ def test_multiline():
123123
) == s
124124

125125

126-
@pytest.mark.xfail(sys.platform == 'win32', reason='yet unknown windows problem')
126+
@pytest.mark.xfail(sys.platform == 'win32', reason='as yet unknown windows problem')
127127
def test_multiline_trailing_bracket():
128128
v = debug.format(
129129
foobar(1, 2, 3
@@ -136,7 +136,7 @@ def test_multiline_trailing_bracket():
136136
) == s
137137

138138

139-
@pytest.mark.xfail(sys.platform == 'win32', reason='yet unknown windows problem')
139+
@pytest.mark.xfail(sys.platform == 'win32', reason='as yet unknown windows problem')
140140
@pytest.mark.skipif(sys.version_info < (3, 6), reason='kwarg order is not guaranteed for 3.5')
141141
def test_kwargs():
142142
v = debug.format(
@@ -153,7 +153,7 @@ def test_kwargs():
153153
) == s
154154

155155

156-
@pytest.mark.xfail(sys.platform == 'win32', reason='yet unknown windows problem')
156+
@pytest.mark.xfail(sys.platform == 'win32', reason='as yet unknown windows problem')
157157
@pytest.mark.skipif(sys.version_info < (3, 6), reason='kwarg order is not guaranteed for 3.5')
158158
def test_kwargs_multiline():
159159
v = debug.format(
@@ -171,7 +171,7 @@ def test_kwargs_multiline():
171171
) == s
172172

173173

174-
@pytest.mark.xfail(sys.platform == 'win32', reason='yet unknown windows problem')
174+
@pytest.mark.xfail(sys.platform == 'win32', reason='as yet unknown windows problem')
175175
def test_multiple_trailing_lines():
176176
v = debug.format(
177177
foobar(
@@ -184,7 +184,7 @@ def test_multiple_trailing_lines():
184184
) == s
185185

186186

187-
@pytest.mark.xfail(sys.platform == 'win32', reason='yet unknown windows problem')
187+
@pytest.mark.xfail(sys.platform == 'win32', reason='as yet unknown windows problem')
188188
def test_very_nested_last_statement():
189189
def func():
190190
return debug.format(
@@ -208,7 +208,7 @@ def func():
208208
)
209209

210210

211-
@pytest.mark.xfail(sys.platform == 'win32', reason='yet unknown windows problem')
211+
@pytest.mark.xfail(sys.platform == 'win32', reason='as yet unknown windows problem')
212212
def test_syntax_warning():
213213
def func():
214214
return debug.format(
@@ -261,16 +261,17 @@ def func():
261261
)
262262

263263

264-
@pytest.mark.xfail(sys.platform == 'win32', reason='yet unknown windows problem')
264+
@pytest.mark.xfail(sys.platform == 'win32', reason='as yet unknown windows problem')
265265
def test_await():
266266
async def foo():
267267
return 1
268268

269269
async def bar():
270270
return debug.format(await foo())
271271

272-
loop = asyncio.get_event_loop()
272+
loop = asyncio.new_event_loop()
273273
v = loop.run_until_complete(bar())
274+
loop.close()
274275
s = re.sub(r':\d{2,}', ':<line no>', str(v))
275276
assert (
276277
'tests/test_expr_render.py:<line no> bar\n'

0 commit comments

Comments
 (0)