From 74d919db41902de2327f6078b1ae064c50a28644 Mon Sep 17 00:00:00 2001 From: Thomas Ballinger Date: Wed, 6 Oct 2021 09:15:28 -0700 Subject: [PATCH 1/2] Test Python 3.10 --- .github/workflows/build.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index b877487a..dc1fc9ed 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -13,7 +13,7 @@ jobs: continue-on-error: ${{ matrix.python-version == 'pypy3' }} strategy: matrix: - python-version: [3.6, 3.7, 3.8, 3.9, pypy3] + python-version: [3.6, 3.7, 3.8, 3.9, "3.10", pypy3] steps: - uses: actions/checkout@v2 with: From 615b2d4cb4296cf42b78c12cae022ac8da4afcad Mon Sep 17 00:00:00 2001 From: Thomas Ballinger Date: Wed, 6 Oct 2021 19:39:46 -0700 Subject: [PATCH 2/2] Update tests for Python 3.10 --- bpython/test/test_curtsies_painting.py | 8 ++++++++ bpython/test/test_interpreter.py | 14 +++++++++++++- 2 files changed, 21 insertions(+), 1 deletion(-) diff --git a/bpython/test/test_curtsies_painting.py b/bpython/test/test_curtsies_painting.py index adc63f15..9f98bf06 100644 --- a/bpython/test/test_curtsies_painting.py +++ b/bpython/test/test_curtsies_painting.py @@ -139,6 +139,14 @@ def test_completion(self): "└──────────────────────────────┘", "Welcome to bpython! Press f", ] + if sys.version_info[:2] < (3, 10) + else [ + ">>> an", + "┌──────────────────────────────┐", + "│ and anext( any( │", + "└──────────────────────────────┘", + "Welcome to bpython! Press f", + ] ) self.assert_paint_ignoring_formatting(screen, (0, 4)) diff --git a/bpython/test/test_interpreter.py b/bpython/test/test_interpreter.py index 9b93672c..fbddadbe 100644 --- a/bpython/test/test_interpreter.py +++ b/bpython/test/test_interpreter.py @@ -35,7 +35,19 @@ def test_syntaxerror(self): i.runsource("1.1.1.1") - if sys.version_info[:2] >= (3, 8): + if sys.version_info[:2] >= (3, 10): + expected = ( + " File " + + green('""') + + ", line " + + bold(magenta("1")) + + "\n 1.1.1.1\n ^^^^^\n" + + bold(red("SyntaxError")) + + ": " + + cyan("invalid syntax. Perhaps you forgot a comma?") + + "\n" + ) + elif (3, 8) <= sys.version_info[:2] <= (3, 9): expected = ( " File " + green('""') pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy