Skip to content

Commit

Permalink
Merge pull request #283 from hugovk/fix-logging.warn-deprecation
Browse files Browse the repository at this point in the history
Replace deprecated logging.warn with logging.warning
  • Loading branch information
RonnyPfannschmidt committed Jun 22, 2022
2 parents 1805da3 + 4041823 commit cb87a83
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
strategy:
fail-fast: false
matrix:
python: ["2.7", "3.5", "3.6", "3.7", "3.8", "3.9", "pypy3"]
python: ["2.7", "3.5", "3.6", "3.7", "3.8", "3.9", "pypy-3.8"]
os: [ubuntu-latest, windows-latest]
include:
- python: "2.7"
Expand All @@ -25,13 +25,13 @@ jobs:
tox_env: "py38-pytest30"
- python: "3.9"
tox_env: "py39-pytest30"
- python: "pypy3"
- python: "pypy-3.8"
tox_env: "pypy3-pytest30"

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v2
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python }}
- name: Test
Expand All @@ -47,9 +47,9 @@ jobs:
needs: build

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v2
uses: actions/setup-python@v4
with:
python-version: "3.7"
- name: Install wheel
Expand Down
6 changes: 3 additions & 3 deletions testing/io_/test_capture.py
Original file line number Diff line number Diff line change
Expand Up @@ -482,13 +482,13 @@ def test_capturing_and_logging_fundamentals(testdir, method):
import py, logging
cap = py.io.%s(out=False, in_=False)
logging.warn("hello1")
logging.warning("hello1")
outerr = cap.suspend()
print ("suspend, captured %%s" %%(outerr,))
logging.warn("hello2")
logging.warning("hello2")
cap.resume()
logging.warn("hello3")
logging.warning("hello3")
outerr = cap.suspend()
print ("suspend2, captured %%s" %% (outerr,))
Expand Down

0 comments on commit cb87a83

Please sign in to comment.