fix import of warnings.warn (#6840)

* fix import of warnings.warn

never part of the traitlets API

* remove yanked codecov
This commit is contained in:
Min RK 2023-04-24 09:38:42 +02:00 committed by GitHub
parent 64e7c061e0
commit fa1f3e42b2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 6 deletions

View File

@ -37,7 +37,7 @@ jobs:
${{ runner.os }}-pip-
- name: Install the Python dependencies
run: |
pip install -e .[test] codecov
pip install -e .[test]
pip install -r docs/doc-requirements.txt
wget https://github.com/jgm/pandoc/releases/download/1.19.1/pandoc-1.19.1-1-amd64.deb && sudo dpkg -i pandoc-1.19.1-1-amd64.deb
- name: List installed packages

View File

@ -37,7 +37,7 @@ jobs:
${{ runner.os }}-pip-
- name: Install the Python dependencies
run: |
pip install -e .[test] codecov
pip install -e .[test]
- name: List installed packages
run: |
pip freeze
@ -48,6 +48,3 @@ jobs:
- name: Run Integration Tests
run: |
pytest -v notebook/tests/test_notebookapp_integration.py --integration_tests
- name: Coverage
run: |
codecov

View File

@ -1,5 +1,6 @@
import inspect
from traitlets import ClassBasedTraitType, Undefined, warn
from warnings import warn
from traitlets import ClassBasedTraitType, Undefined
# Traitlet's 5.x includes a set of utilities for building
# description strings for objects. Traitlets 5.x does not