Skip to content

Commit cb87a83

Browse files
Merge pull request #283 from hugovk/fix-logging.warn-deprecation
Replace deprecated logging.warn with logging.warning
2 parents 1805da3 + 4041823 commit cb87a83

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

.github/workflows/main.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jobs:
1010
strategy:
1111
fail-fast: false
1212
matrix:
13-
python: ["2.7", "3.5", "3.6", "3.7", "3.8", "3.9", "pypy3"]
13+
python: ["2.7", "3.5", "3.6", "3.7", "3.8", "3.9", "pypy-3.8"]
1414
os: [ubuntu-latest, windows-latest]
1515
include:
1616
- python: "2.7"
@@ -25,13 +25,13 @@ jobs:
2525
tox_env: "py38-pytest30"
2626
- python: "3.9"
2727
tox_env: "py39-pytest30"
28-
- python: "pypy3"
28+
- python: "pypy-3.8"
2929
tox_env: "pypy3-pytest30"
3030

3131
steps:
32-
- uses: actions/checkout@v2
32+
- uses: actions/checkout@v3
3333
- name: Set up Python
34-
uses: actions/setup-python@v2
34+
uses: actions/setup-python@v4
3535
with:
3636
python-version: ${{ matrix.python }}
3737
- name: Test
@@ -47,9 +47,9 @@ jobs:
4747
needs: build
4848

4949
steps:
50-
- uses: actions/checkout@v2
50+
- uses: actions/checkout@v3
5151
- name: Set up Python
52-
uses: actions/setup-python@v2
52+
uses: actions/setup-python@v4
5353
with:
5454
python-version: "3.7"
5555
- name: Install wheel

testing/io_/test_capture.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -482,13 +482,13 @@ def test_capturing_and_logging_fundamentals(testdir, method):
482482
import py, logging
483483
cap = py.io.%s(out=False, in_=False)
484484
485-
logging.warn("hello1")
485+
logging.warning("hello1")
486486
outerr = cap.suspend()
487487
print ("suspend, captured %%s" %%(outerr,))
488-
logging.warn("hello2")
488+
logging.warning("hello2")
489489
490490
cap.resume()
491-
logging.warn("hello3")
491+
logging.warning("hello3")
492492
493493
outerr = cap.suspend()
494494
print ("suspend2, captured %%s" %% (outerr,))

0 commit comments

Comments
 (0)