##// END OF EJS Templates
`AssertionError`: `assert _xterm_term_title_saved` in WSL (#14480)...
`AssertionError`: `assert _xterm_term_title_saved` in WSL (#14480) `AssertionError`: `assert _xterm_term_title_saved` In some (unknown) situation, it is possible that the `_xterm_term_title_saved` is unset, but the code would make a call to `_restore_term_title_xterm`, resulting in `AssertionError`. At least on replicatable reproduction is returning from `ipython` to `pudb` via `^D^D` on an empty cell. See more details in https://github.com/ipython/ipython/pull/14480 Signed-off-by: Stavros Ntentos <133706+stdedos@users.noreply.github.com> <details> <summary><em>was:</em></summary> In some (unknown) situation, it is possible that the `_xterm_term_title_saved` is unset, but the code would make a call to `_restore_term_title_xterm`, resulting in `AssertionError`. As title stacking does not seem to be getting traction (https://github.com/microsoft/terminal/issues/14575), do not set the `xterm` variants of `_set_term_title` / `_restore_term_title`. WSL detection: https://superuser.com/a/1749811/533196 Additionally, almost-`black` the file. </details>

File last commit:

r28747:b594334f
r28838:9b8cd4a3 merge main
Show More
downstream.yml
71 lines | 2.3 KiB | text/x-yaml | YamlLexer
name: Run Downstream tests
on:
push:
pull_request:
# Run weekly on Monday at 1:23 UTC
schedule:
- cron: '23 1 * * 1'
workflow_dispatch:
permissions:
contents: read
jobs:
test:
runs-on: ${{ matrix.os }}
# Disable scheduled CI runs on forks
if: github.event_name != 'schedule' || github.repository_owner == 'ipython'
strategy:
matrix:
os: [ubuntu-latest]
python-version: ["3.10"]
include:
- os: macos-13
python-version: "3.10"
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Update Python installer
run: |
python -m pip install --upgrade pip setuptools wheel
- name: Install ipykernel
run: |
cd ..
git clone https://github.com/ipython/ipykernel
cd ipykernel
pip install -e .[test]
cd ..
- name: Install and update Python dependencies
run: |
python -m pip install --upgrade -e file://$PWD#egg=ipython[test]
# we must install IPython after ipykernel to get the right versions.
python -m pip install --upgrade --upgrade-strategy eager flaky ipyparallel
- name: pytest ipykernel
env:
COLUMNS: 120
run: |
cd ../ipykernel
pytest
- name: Install sagemath-repl
run: |
cd ..
git clone --depth 1 https://github.com/sagemath/sage
cd sage
# We cloned it for the tests, but for simplicity we install the
# wheels from PyPI.
# (Avoid 10.3b6 because of https://github.com/sagemath/sage/pull/37178)
pip install --pre sagemath-repl sagemath-environment
# Install optionals that make more tests pass
pip install pillow
pip install --pre sagemath-categories
cd ..
- name: Test sagemath-repl
run: |
cd ../sage/
# From https://github.com/sagemath/sage/blob/develop/pkgs/sagemath-repl/tox.ini
sage-runtests -p --environment=sage.all__sagemath_repl --baseline-stats-path=pkgs/sagemath-repl/known-test-failures.json --initial --optional=sage src/sage/repl src/sage/doctest src/sage/misc/sage_input.py src/sage/misc/sage_eval.py