Skip to content

Commit 3a54ef1

Browse files
authored
Fix tests when running pypy (python#84)
Also run CI against pypy and update actions. Closes: python#83
1 parent b5f375a commit 3a54ef1

File tree

2 files changed

+11
-7
lines changed

2 files changed

+11
-7
lines changed

.github/workflows/ci.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -18,15 +18,15 @@ jobs:
1818
# Python version, because typing sometimes changed between bugfix releases.
1919
# For available versions, see:
2020
# https://raw.githubusercontent.com/actions/python-versions/main/versions-manifest.json
21-
python-version: ["3.7", "3.7.1", "3.8", "3.8.0", "3.9", "3.9.0", "3.10", "3.10.0", "3.11-dev"]
21+
python-version: ["3.7", "3.7.1", "3.8", "3.8.0", "3.9", "3.9.0", "3.10", "3.10.0", "3.11-dev", "pypy3.9"]
2222

2323
runs-on: ubuntu-latest
2424

2525
steps:
26-
- uses: actions/checkout@v2
26+
- uses: actions/checkout@v3
2727

2828
- name: Set up Python
29-
uses: actions/setup-python@v2
29+
uses: actions/setup-python@v4
3030
with:
3131
python-version: ${{ matrix.python-version }}
3232

@@ -44,11 +44,11 @@ jobs:
4444
runs-on: ubuntu-latest
4545

4646
steps:
47-
- uses: actions/checkout@v2
48-
- name: Set up Python 3
49-
uses: actions/setup-python@v2
47+
- uses: actions/checkout@v3
48+
- name: Set up Python
49+
uses: actions/setup-python@v4
5050
with:
51-
python-version: 3
51+
python-version: "3"
5252
cache: "pip"
5353
cache-dependency-path: "test-requirements.txt"
5454

src/test_typing_extensions.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -509,6 +509,10 @@ def blah():
509509

510510
blah()
511511

512+
@skipIf(
513+
sys.implementation.name == "pypy",
514+
"sum() and print() are not compiled in pypy"
515+
)
512516
@patch(
513517
f"{registry_holder.__name__}._overload_registry",
514518
defaultdict(lambda: defaultdict(dict))

0 commit comments

Comments
 (0)