This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: Extra `DeprecationWarning` when running `lib2to3` tests
Type: behavior Stage: patch review
Components: Tests Versions: Python 3.11, Python 3.10, Python 3.9
process
Status: open Resolution:
Dependencies: Superseder:
Assigned To: Nosy List: JelleZijlstra, benjamin.peterson, lukasz.langa, sobolevn
Priority: normal Keywords: patch

Created on 2022-02-21 10:22 by sobolevn, last changed 2022-04-11 14:59 by admin.

Pull Requests
URL Status Linked Edit
PR 31464 open sobolevn, 2022-02-21 10:23
Messages (1)
msg413643 - (view) Author: Nikita Sobolev (sobolevn) * (Python triager) Date: 2022-02-21 10:22
I first noticed it in the buildbot logs:

```
0:24:42 load avg: 3.87 [430/431/1] test_lib2to3 passed (1 min 38 sec)
<string>:2: DeprecationWarning: lib2to3 package is deprecated and may not be able to parse Python 3.10+
```

But, it also happens locally:

```
» ./python.exe Lib/test/test_lib2to3.py
/Users/sobolev/Desktop/cpython/Lib/unittest/loader.py:350: DeprecationWarning: lib2to3 package is deprecated and may not be able to parse Python 3.10+
  __import__(name)
Refactor file: /Users/sobolev/Desktop/cpython/Lib/lib2to3/refactor.py
```

After my patch it is gone:

```
» ./python.exe Lib/test/test_lib2to3.py
Refactor file: /Users/sobolev/Desktop/cpython/Lib/lib2to3/refactor.py
```
History
Date User Action Args
2022-04-11 14:59:56adminsetgithub: 90971
2022-02-21 10:23:36sobolevnsetkeywords: + patch
stage: patch review
pull_requests: + pull_request29594
2022-02-21 10:22:11sobolevncreate