[issue47038] Rewrite asyncio.wait_for test to use IsolatedAsyncioTestCase

2022-03-16 Thread Andrew Svetlov
Change by Andrew Svetlov : -- pull_requests: +30037 stage: -> patch review pull_request: https://github.com/python/cpython/pull/31946 ___ Python tracker ___

[issue47038] Rewrite asyncio.wait_for test to use IsolatedAsyncioTestCase

2022-03-16 Thread Andrew Svetlov
Andrew Svetlov added the comment: test_cancel_blocking_wait_for() / test_cancel_wait_for() is not converted still. -- resolution: fixed -> stage: resolved -> status: closed -> open ___ Python tracker

[issue47038] Rewrite asyncio.wait_for test to use IsolatedAsyncioTestCase

2022-03-16 Thread Andrew Svetlov
Change by Andrew Svetlov : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue47038] Rewrite asyncio.wait_for test to use IsolatedAsyncioTestCase

2022-03-16 Thread Andrew Svetlov
Andrew Svetlov added the comment: New changeset 3244659521798417810100904f39ae5dabe60a7f by Andrew Svetlov in branch '3.9': [3.9] bpo-47038: Rewrite asyncio.wait_for test to use IsolatedAsyncioTestCase (GH-31942). (GH-31944) https://github.com/python/cpython/commit

[issue47038] Rewrite asyncio.wait_for test to use IsolatedAsyncioTestCase

2022-03-16 Thread Andrew Svetlov
Andrew Svetlov added the comment: New changeset 4186dd662cf22613b21af948163978af4243a8d6 by Miss Islington (bot) in branch '3.10': bpo-47038: Rewrite asyncio.wait_for test to use IsolatedAsyncioTestCase (GH-31942) (GH-31943) https://github.com/python/cpython/commit

[issue47038] Rewrite asyncio.wait_for test to use IsolatedAsyncioTestCase

2022-03-16 Thread Andrew Svetlov
Change by Andrew Svetlov : -- pull_requests: +30035 pull_request: https://github.com/python/cpython/pull/31944 ___ Python tracker ___

[issue47038] Rewrite asyncio.wait_for test to use IsolatedAsyncioTestCase

2022-03-16 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 2.0 -> 3.0 pull_requests: +30034 pull_request: https://github.com/python/cpython/pull/31943 ___ Python tracker

[issue47038] Rewrite asyncio.wait_for test to use IsolatedAsyncioTestCase

2022-03-16 Thread Andrew Svetlov
Andrew Svetlov added the comment: New changeset dd0082c627713634c7fd88ad33d18b5cc9f4a7b8 by Andrew Svetlov in branch 'main': bpo-47038: Rewrite asyncio.wait_for test to use IsolatedAsyncioTestCase (GH-31942) https://github.com/python/cpython/commit/dd0082c627713634c7fd88ad33d18b5cc9f4a7b8

[issue47038] Rewrite asyncio.wait_for test to use IsolatedAsyncioTestCase

2022-03-16 Thread Andrew Svetlov
Change by Andrew Svetlov : -- keywords: +patch pull_requests: +30033 stage: -> patch review pull_request: https://github.com/python/cpython/pull/31942 ___ Python tracker ___

[issue47038] Rewrite asyncio.wait_for test to use IsolatedAsyncioTestCase

2022-03-16 Thread Andrew Svetlov
New submission from Andrew Svetlov : It simplifies future maintenance. -- components: Tests, asyncio messages: 415359 nosy: asvetlov, yselivanov priority: normal severity: normal status: open title: Rewrite asyncio.wait_for test to use IsolatedAsyncioTestCase versions: Python 3.10

[issue9736] doctest.DocTestSuite doesn't handle test globs correctly

2022-03-16 Thread Roundup Robot
Change by Roundup Robot : -- nosy: +python-dev nosy_count: 4.0 -> 5.0 pull_requests: +30024 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/31932 ___ Python tracker

[issue47016] Create a test verifying bundled pip and setuptools wheels

2022-03-14 Thread Alex Waygood
Change by Alex Waygood : -- nosy: +ned.deily ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue47016] Create a test verifying bundled pip and setuptools wheels

2022-03-14 Thread Illia Volochii
Change by Illia Volochii : -- keywords: +patch pull_requests: +29983 stage: -> patch review pull_request: https://github.com/python/cpython/pull/31885 ___ Python tracker ___

[issue47016] Create a test verifying bundled pip and setuptools wheels

2022-03-14 Thread Illia Volochii
Change by Illia Volochii : -- nosy: +pablogsal ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue47016] Create a test verifying bundled pip and setuptools wheels

2022-03-14 Thread Illia Volochii
: 415193 nosy: illia-v priority: normal severity: normal status: open title: Create a test verifying bundled pip and setuptools wheels type: enhancement versions: Python 3.10, Python 3.11, Python 3.7, Python 3.8, Python 3.9 ___ Python tracker <https://bugs.python.

[issue2771] Test issue

2022-03-11 Thread admin
Change by admin : -- github: 1 -> 18614 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

Re: How to test input via subprocess.Popen with data from file

2022-03-11 Thread Tobiah
Why not just have scripts that echo out the various sets of test data you are interested in? That way, Popen would always be your interface and you wouldn't have to make two cases in the consumer script. In other words, make program that outputs test data just like your main data source program

Re: How to test input via subprocess.Popen with data from file

2022-03-11 Thread Roel Schroeven
Op 11/03/2022 om 10:11 schreef Roel Schroeven: Op 10/03/2022 om 13:16 schreef Loris Bennett: Hi, I have a command which produces output like the following:    Job ID: 9431211    Cluster: curta    User/Group: build/staff    State: COMPLETED (exit code 0)    Nodes: 1    Cores per node: 8    CPU

Re: How to test input via subprocess.Popen with data from file

2022-03-11 Thread Roel Schroeven
Op 10/03/2022 om 13:16 schreef Loris Bennett: Hi, I have a command which produces output like the following: Job ID: 9431211 Cluster: curta User/Group: build/staff State: COMPLETED (exit code 0) Nodes: 1 Cores per node: 8 CPU Utilized: 01:30:53 CPU Efficiency: 83.63% of

Re: How to test input via subprocess.Popen with data from file

2022-03-10 Thread Dieter Maurer
Loris Bennett wrote at 2022-3-11 07:40 +0100: > ... I want to test the parsing ... >Sorry if I was unclear but my question is: > >Given that the return value from Popen is a Popen object and given that >the return value from reading a file is a single string or maybe a list &g

Re: How to test input via subprocess.Popen with data from file

2022-03-10 Thread Loris Bennett
ng subprocess.Popen and accessing the >>contents via Popen.stdout. However, for testing purposes I want to save >>various possible outputs of the command as text files and use those as >>inputs. > > What do you want to test? the parsing? the "popen" interacti

Re: How to test input via subprocess.Popen with data from file

2022-03-10 Thread Dieter Maurer
g purposes I want to save >various possible outputs of the command as text files and use those as >inputs. What do you want to test? the parsing? the "popen" interaction? You can separately test both tasks (I, at your place, would do this). For the parsing test, it is not relevant that th

How to test input via subprocess.Popen with data from file

2022-03-10 Thread Loris Bennett
format should I use to pass data to the actual parsing function? I could in both production and test convert the entire input to a string and pass the string to the parsing method. However, I could use something like test_input_01 = subprocess.Popen( ["cat test_input_0

[issue2771] Test issue

2022-03-08 Thread admin
Change by admin : -- github: None -> 1 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue2771] Test issue

2022-03-07 Thread Ezio Melotti
Change by Ezio Melotti : -- dependencies: +Add math.tau, Python source code build fails with old mercurial superseder: -> Test issue ___ Python tracker <https://bugs.python.org/iss

[issue46811] Test suite needs adjustments for Expat >=2.4.5

2022-02-22 Thread Łukasz Langa
Łukasz Langa added the comment: New changeset fdfd7a93540b0866ba42264ecb9b0a3c2286f654 by Łukasz Langa (Sebastian Pipping) in branch '3.8': bpo-46811: Make test suite support Expat >=2.4.5 (GH-31453) https://github.com/python/cpython/commit/fdfd7a93540b0866ba42264ecb9b0a3c2286f

[issue46811] Test suite needs adjustments for Expat >=2.4.5

2022-02-21 Thread Ned Deily
Ned Deily added the comment: New changeset d4f5bb912e67299b59b814b89a5afd9a8821a14e by Miss Islington (bot) in branch '3.7': bpo-46811: Make test suite support Expat >=2.4.5 (GH-31453) (GH-31471) https://github.com/python/cpython/commit/d4f5bb912e67299b59b814b89a5afd9a8821a

[issue46811] Test suite needs adjustments for Expat >=2.4.5

2022-02-21 Thread Łukasz Langa
Łukasz Langa added the comment: New changeset 336a916f75642dfe2d87e237981686051d5d51f8 by Miss Islington (bot) in branch '3.9': bpo-46811: Make test suite support Expat >=2.4.5 (GH-31453) (GH-31469) https://github.com/python/cpython/commit/336a916f75642dfe2d87e237981686051d5d5

[issue46811] Test suite needs adjustments for Expat >=2.4.5

2022-02-21 Thread Łukasz Langa
Łukasz Langa added the comment: New changeset 7da97f61816f3cadaa6788804b22a2434b40e8c5 by Miss Islington (bot) in branch '3.10': bpo-46811: Make test suite support Expat >=2.4.5 (GH-31453) (GH-31472) https://github.com/python/cpython/commit/7da97f61816f3cadaa6788804b22a2434b40e

[issue46811] Test suite needs adjustments for Expat >=2.4.5

2022-02-21 Thread miss-islington
Change by miss-islington : -- pull_requests: +29602 pull_request: https://github.com/python/cpython/pull/31472 ___ Python tracker ___

[issue46811] Test suite needs adjustments for Expat >=2.4.5

2022-02-21 Thread miss-islington
Change by miss-islington : -- pull_requests: +29601 pull_request: https://github.com/python/cpython/pull/31471 ___ Python tracker ___

[issue46811] Test suite needs adjustments for Expat >=2.4.5

2022-02-21 Thread miss-islington
Change by miss-islington : -- pull_requests: +29600 pull_request: https://github.com/python/cpython/pull/31470 ___ Python tracker ___

[issue46811] Test suite needs adjustments for Expat >=2.4.5

2022-02-21 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 3.0 -> 4.0 pull_requests: +29599 pull_request: https://github.com/python/cpython/pull/31469 ___ Python tracker

[issue46811] Test suite needs adjustments for Expat >=2.4.5

2022-02-21 Thread Łukasz Langa
Łukasz Langa added the comment: New changeset 2cae93832f46b245847bdc252456ddf7742ef45e by Sebastian Pipping in branch 'main': bpo-46811: Make test suite support Expat >=2.4.5 (GH-31453) https://github.com/python/cpython/commit/2cae93832f46b245847bdc252456ddf7742ef45e -- n

[issue46811] Test suite needs adjustments for Expat >=2.4.5

2022-02-20 Thread sping
Change by sping : -- keywords: +patch pull_requests: +29581 stage: -> patch review pull_request: https://github.com/python/cpython/pull/31453 ___ Python tracker ___

[issue46811] Test suite needs adjustments for Expat >=2.4.5

2022-02-20 Thread sping
New submission from sping : It has been reported at https://bugs.python.org/issue46794#msg413587 that the current CPython test suite needs some adjustments for Expat >=2.4.5. Since that is somewhat separate from updating the bundled copy of Expat to >=2.4.6, I am creating this ded

[issue46760] test_dis should test the dis module, not everything else

2022-02-18 Thread Terry J. Reedy
Terry J. Reedy added the comment: With IDLE, I have issues with trying to test IDLE code without retesting tkinter, as well as deciding on the proper units of behavior to test. Some suggestions: 1. Add a docstring to the module with guidelines, after review from a couple of others

[issue45559] pprint tests do not test pprint.pprint()

2022-02-18 Thread Eric V. Smith
Eric V. Smith added the comment: Sure, have a go at it! Any testing of pprint.pprint() would be an improvement, but ideally all options should be tested. It would probably be worthwhile to restructure the tests to run both pformat and pprint tests from the same logic, so that we only need

[issue45559] pprint tests do not test pprint.pprint()

2022-02-18 Thread Haz
Haz added the comment: Hi! Any chance I could take this on if it hasn't already been actioned please? I assume the scope is to test all the pprint options? Thanks! -- nosy: +hp310780 ___ Python tracker <https://bugs.python.org/issue45

[issue46760] test_dis should test the dis module, not everything else

2022-02-16 Thread Mark Shannon
Change by Mark Shannon : -- nosy: +brandtbucher, iritkatriel ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue46760] test_dis should test the dis module, not everything else

2022-02-16 Thread Mark Shannon
Change by Mark Shannon : -- keywords: +patch pull_requests: +29519 stage: -> patch review pull_request: https://github.com/python/cpython/pull/31369 ___ Python tracker ___

[issue46760] test_dis should test the dis module, not everything else

2022-02-15 Thread Jelle Zijlstra
Change by Jelle Zijlstra : -- nosy: +Jelle Zijlstra ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue46760] test_dis should test the dis module, not everything else

2022-02-15 Thread Mark Shannon
://github.com/python/cpython/commit/b39fd0c9b8dc6683924205265ff43cc597d1dfb9 although the tests from before that still hardcode offsets. -- components: Tests messages: 413291 nosy: Mark.Shannon priority: normal severity: normal status: open title: test_dis should test the dis module, not

[issue46678] Invalid cross device link in Lib/test/support/import_helper.py

2022-02-08 Thread Brett Cannon
Change by Brett Cannon : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

[issue46678] Invalid cross device link in Lib/test/support/import_helper.py

2022-02-08 Thread Brett Cannon
Brett Cannon added the comment: New changeset c2735b75afd530631efde4ddd3cb24bbdc285559 by Miss Islington (bot) in branch '3.10': bpo-46678: Fix Invalid cross device link in Lib/test/support/import_helper.py (GH-31204) (GH-31207) https://github.com/python/cpython/commit

[issue46678] Invalid cross device link in Lib/test/support/import_helper.py

2022-02-07 Thread miss-islington
miss-islington added the comment: New changeset da576e08296490e94924421af71001bcfbccb317 by Jason Wilkes in branch 'main': bpo-46678: Fix Invalid cross device link in Lib/test/support/import_helper.py (GH-31204) https://github.com/python/cpython/commit

[issue46678] Invalid cross device link in Lib/test/support/import_helper.py

2022-02-07 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 1.0 -> 2.0 pull_requests: +29378 pull_request: https://github.com/python/cpython/pull/31207 ___ Python tracker

[issue46678] Invalid cross device link in Lib/test/support/import_helper.py

2022-02-07 Thread Jason Wilkes
Change by Jason Wilkes : -- keywords: +patch pull_requests: +29374 stage: -> patch review pull_request: https://github.com/python/cpython/pull/31204 ___ Python tracker ___

[issue46678] Invalid cross device link in Lib/test/support/import_helper.py

2022-02-07 Thread Jason Wilkes
New submission from Jason Wilkes : In Lib/test/support/import_helper.py, the function make_legacy_pyc makes a call to os.rename which can fail when the source and target live on different devices. This happens (for example) when PYTHONPYCACHEPREFIX is set to a directory on a different device

[issue42222] Modernize integer test/conversion in randrange()

2022-02-03 Thread Petr Viktorin
Petr Viktorin added the comment: Since this is a user-visible change in 3.11, could you add a What's New entry? -- nosy: +petr.viktorin ___ Python tracker ___

[issue45629] Tools/freeze needs tests in the test suite.

2022-02-02 Thread Gregory P. Smith
Gregory P. Smith added the comment: New changeset 8726067ace98a27557e9fdf1a8e1c509c37cfcfc by Gregory P. Smith in branch 'main': bpo-45629: Improve test.support.skip_if_buildbot (GH-31094) https://github.com/python/cpython/commit/8726067ace98a27557e9fdf1a8e1c509c37cfcfc --

[issue45629] Tools/freeze needs tests in the test suite.

2022-02-02 Thread Gregory P. Smith
Change by Gregory P. Smith : -- nosy: +gregory.p.smith nosy_count: 2.0 -> 3.0 pull_requests: +29280 pull_request: https://github.com/python/cpython/pull/31094 ___ Python tracker

[issue33222] Various test failures if PYTHONUSERBASE is not canonicalized

2022-01-30 Thread Irit Katriel
Irit Katriel added the comment: Maybe I did something wrong. Will check tomorrow. In the meantime I’m updating the versions. Thanks for double checking. -- resolution: out of date -> versions: +Python 3.10, Python 3.11, Python 3.9 -Python 3.8 ___

[issue33222] Various test failures if PYTHONUSERBASE is not canonicalized

2022-01-30 Thread Ned Deily
Ned Deily added the comment: > I tested 3.11 (on a Mac 11.6). It still fails for me on current main HEAD (on 12.2 FWIW): $ ./configure --prefix=/tmp/p $ make -j6 $ mkdir /tmp/x $ export PYTHONUSERBASE=/tmp/x/.. $ ./python -m test -w test_site test_sysconfig Raised RLIMIT_NOFILE: 256 ->

[issue33222] Various test failures if PYTHONUSERBASE is not canonicalized

2022-01-30 Thread Irit Katriel
Irit Katriel added the comment: I tested 3.11 (on a Mac 11.6). -- ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue33222] Various test failures if PYTHONUSERBASE is not canonicalized

2022-01-30 Thread Ned Deily
Ned Deily added the comment: FWIW, I still see the same failures with 3.10.2 on a current macOS 12.2 system. -- status: pending -> open ___ Python tracker ___

[issue43320] test test_webbrowser "can't locate runnable browser" with enable-optimizations

2022-01-30 Thread Irit Katriel
Irit Katriel added the comment: 3.8 is no longer maintained. Please create a new issue if you are seeing this problem on a current version (>= 3.9). -- nosy: +iritkatriel resolution: -> out of date stage: -> resolved status: open -> closed ___

[issue33222] Various test failures if PYTHONUSERBASE is not canonicalized

2022-01-30 Thread Irit Katriel
Irit Katriel added the comment: I tested on a map and I only got the failure in test_s_option, which seems right because that directory is indeed not in sys.path. -- nosy: +iritkatriel resolution: -> out of date status: open -> pending ___ Python

[issue43583] make test failures, 2 tests failed: test_embed test_tabnanny

2022-01-29 Thread Irit Katriel
Change by Irit Katriel : -- resolution: -> duplicate stage: -> resolved status: open -> closed superseder: -> test_embed and test_tabnanny fails if the current directory is non-ASCII ___ Python tracker

[issue43536] 3.9.2 --without-pymalloc --with-pydebug --with-valgrind: test failed: test_posix

2022-01-27 Thread STINNER Victor
STINNER Victor added the comment: Without the test output, we cannot investigate the issue. I close it. -- nosy: +vstinner resolution: -> out of date stage: -> resolved status: open -> closed ___ Python tracker <https://bug

[issue46390] Multiple test failures on Alpine 3.15 / musl-1.2.2-r7

2022-01-27 Thread Zachary Ware
Zachary Ware added the comment: BTW, we do have an Alpine buildbot worker in the unstable set, running only on the `main` branch: https://buildbot.python.org/all/#/workers/19 -- nosy: +zach.ware ___ Python tracker

[issue46416] Direct invocation of `Lib/test/test_typing.py` fails

2022-01-27 Thread Nikita Sobolev
Change by Nikita Sobolev : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue46098] Missing test for multi-line errors in traceback

2022-01-27 Thread Irit Katriel
Change by Irit Katriel : -- components: +Tests ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue46098] Missing test for multi-line errors in traceback

2022-01-27 Thread Irit Katriel
Change by Irit Katriel : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed versions: -Python 3.10 ___ Python tracker ___

[issue46098] Missing test for multi-line errors in traceback

2022-01-27 Thread Irit Katriel
Irit Katriel added the comment: New changeset 183f8d57fa5959e7578e7f470edc364edb23caca by Russel Webber in branch 'main': bpo-46098: Add test for multiline syntax error traceback (GH-30695) https://github.com/python/cpython/commit/183f8d57fa5959e7578e7f470edc364edb23caca

[issue46529] Improve test coverage of `Union` and `Optional` repr()

2022-01-26 Thread Ken Jin
Change by Ken Jin : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

[issue46529] Improve test coverage of `Union` and `Optional` repr()

2022-01-26 Thread miss-islington
miss-islington added the comment: New changeset 29eefcc9c688bc4097f2660de1fa846c5ea54735 by Miss Islington (bot) in branch '3.9': bpo-46529: increase coverage of `typing.Union.__repr__` method (GH-30911) https://github.com/python/cpython/commit/29eefcc9c688bc4097f2660de1fa846c5ea54735

[issue46529] Improve test coverage of `Union` and `Optional` repr()

2022-01-26 Thread miss-islington
miss-islington added the comment: New changeset c730342005edf67333c37b575b419e2fc67d232b by Miss Islington (bot) in branch '3.10': bpo-46529: increase coverage of `typing.Union.__repr__` method (GH-30911) https://github.com/python/cpython/commit/c730342005edf67333c37b575b419e2fc67d232b

[issue46529] Improve test coverage of `Union` and `Optional` repr()

2022-01-26 Thread miss-islington
Change by miss-islington : -- pull_requests: +29099 pull_request: https://github.com/python/cpython/pull/30920 ___ Python tracker ___

[issue46529] Improve test coverage of `Union` and `Optional` repr()

2022-01-26 Thread Ken Jin
Ken Jin added the comment: New changeset d0c690b5f85c679de6059cf353fe0524e905530e by Nikita Sobolev in branch 'main': bpo-46529: increase coverage of `typing.Union.__repr__` method (GH-30911) https://github.com/python/cpython/commit/d0c690b5f85c679de6059cf353fe0524e905530e --

[issue46529] Improve test coverage of `Union` and `Optional` repr()

2022-01-26 Thread Nikita Sobolev
Change by Nikita Sobolev : -- keywords: +patch pull_requests: +29090 stage: -> patch review pull_request: https://github.com/python/cpython/pull/30911 ___ Python tracker ___

[issue46529] Improve test coverage of `Union` and `Optional` repr()

2022-01-26 Thread Nikita Sobolev
/7cf285d82ec722d4225297366013e924805171f2/Lib/typing.py#L1235 I will send a PR with new assertions. -- components: Tests messages: 411715 nosy: gvanrossum, kj, sobolevn priority: normal severity: normal status: open title: Improve test coverage of `Union` and `Optional` repr() type

[issue46523] Test suite skips failing tests when setUp[Class] fails

2022-01-25 Thread Nikita Sobolev
Change by Nikita Sobolev : -- keywords: +patch pull_requests: +29076 stage: -> patch review pull_request: https://github.com/python/cpython/pull/30895 ___ Python tracker ___

[issue46523] Test suite skips failing tests when setUp[Class] fails

2022-01-25 Thread Ken Jin
Change by Ken Jin : -- title: Test suite skips failing tests -> Test suite skips failing tests when setUp[Class] fails ___ Python tracker <https://bugs.python.org/issu

[issue46523] Test suite skips failing tests

2022-01-25 Thread Ken Jin
Ken Jin added the comment: I vote for option 2. -- nosy: +ezio.melotti, gvanrossum, kj ___ Python tracker ___ ___ Python-bugs-list

[issue46523] Test suite skips failing tests

2022-01-25 Thread Nikita Sobolev
) -- Traceback (most recent call last): File "D:\a\cpython\cpython\lib\test\test_typing.py", line 3917, in setUpClass UserId = NewType('UserId', int) NameError: name 'NewType' is not defined

[issue46416] Direct invocation of `Lib/test/test_typing.py` fails

2022-01-24 Thread Nikita Sobolev
: > > Christian Heimes added the comment: > > I noticed that you have been looking into the __main__ block of test > modules. Wouldn't it make more sense to just remove the __main__ and have > all tests go through regrtest? Everybody should use > >./python

[issue46416] Direct invocation of `Lib/test/test_typing.py` fails

2022-01-24 Thread Christian Heimes
Christian Heimes added the comment: I noticed that you have been looking into the __main__ block of test modules. Wouldn't it make more sense to just remove the __main__ and have all tests go through regrtest? Everybody should use ./python -m regrtest test_typing or the Windows

[issue46416] Direct invocation of `Lib/test/test_typing.py` fails

2022-01-24 Thread Ken Jin
Ken Jin added the comment: New changeset eaeb99468045b863d2dd3da3e3d1c3c9c78e1254 by Nikita Sobolev in branch '3.10': [3.10] bpo-46416: Allow direct invocation of `Lib/test/test_typing.py` (GH-30641) (GH-30697) https://github.com/python/cpython/commit

Re: How to test for maildir 'folder' in Python?

2022-01-23 Thread Barry
messages. I'm trying to convert it from mbox to >>> maildir (as I now store my mail in maildir format). >>> >>> So I need to test whether a point I have reached in the hierarchy is a >>> maildir mailbox or not. Using mbox format it's easy because 'folders' >&

Re: How to test for maildir 'folder' in Python?

2022-01-23 Thread Chris Green
maildir format). > > > > So I need to test whether a point I have reached in the hierarchy is a > > maildir mailbox or not. Using mbox format it's easy because 'folders' > > are directories and mailboxes are files. However with maildir the > > 'folders' have direct

Re: How to test for maildir 'folder' in Python?

2022-01-23 Thread Chris Green
Cameron Simpson wrote: > On 22Jan2022 21:26, Chris Green wrote: > >So I need to test whether a point I have reached in the hierarchy is a > >maildir mailbox or not. Using mbox format it's easy because 'folders' > >are directories and mailboxes are files. However with ma

Re: How to test for maildir 'folder' in Python?

2022-01-23 Thread Barry Scott
> On 22 Jan 2022, at 21:26, Chris Green wrote: > > I have a script that walks a quite deep tree of mail messages to find > and archive old messages. I'm trying to convert it from mbox to > maildir (as I now store my mail in maildir format). > > So I need to test w

[issue46484] Add test for Calendar().iterweekdays()

2022-01-23 Thread jiahua wang
Change by jiahua wang : -- keywords: +patch pull_requests: +29012 stage: -> patch review pull_request: https://github.com/python/cpython/pull/30825 ___ Python tracker ___

[issue46484] Add test for Calendar().iterweekdays()

2022-01-23 Thread jiahua wang
New submission from jiahua wang : Apparently there is no test for Calendar().iterweekdays(). wangdeMacBook-Pro :: ~/cpython » grep -R iterweekdays Lib/test/ * Binary file Lib/test//__pycache__/test_calendar.cpython-311.pyc matches Doc/library/calendar.rst: .. method:: iterweekdays() Binary

[issue46425] Multiple test modules fail to run if invoked directly

2022-01-22 Thread Jason R. Coombs
Jason R. Coombs added the comment: New changeset d888ff5381594641126065e78dc9210dae4436a4 by Jason R. Coombs in branch 'main': bpo-46425: Partially revert "bpo-46425: fix direct invocation of `test_importlib` (GH-30682)" (GH-30799)

Re: How to test for maildir 'folder' in Python?

2022-01-22 Thread Cameron Simpson
On 22Jan2022 21:26, Chris Green wrote: >So I need to test whether a point I have reached in the hierarchy is a >maildir mailbox or not. Using mbox format it's easy because 'folders' >are directories and mailboxes are files. However with maildir the >'folders' have directories wi

How to test for maildir 'folder' in Python?

2022-01-22 Thread Chris Green
I have a script that walks a quite deep tree of mail messages to find and archive old messages. I'm trying to convert it from mbox to maildir (as I now store my mail in maildir format). So I need to test whether a point I have reached in the hierarchy is a maildir mailbox or not. Using mbox

[issue46425] Multiple test modules fail to run if invoked directly

2022-01-22 Thread Jason R. Coombs
Change by Jason R. Coombs : -- pull_requests: +28990 pull_request: https://github.com/python/cpython/pull/30803 ___ Python tracker ___

[issue46425] Multiple test modules fail to run if invoked directly

2022-01-22 Thread Jason R. Coombs
Change by Jason R. Coombs : -- pull_requests: +28988 pull_request: https://github.com/python/cpython/pull/30802 ___ Python tracker ___

[issue46425] Multiple test modules fail to run if invoked directly

2022-01-22 Thread Nikita Sobolev
Change by Nikita Sobolev : -- pull_requests: +28985 pull_request: https://github.com/python/cpython/pull/30800 ___ Python tracker ___

[issue46425] Multiple test modules fail to run if invoked directly

2022-01-22 Thread Jason R. Coombs
Change by Jason R. Coombs : -- pull_requests: +28984 pull_request: https://github.com/python/cpython/pull/30799 ___ Python tracker ___

[issue46425] Multiple test modules fail to run if invoked directly

2022-01-22 Thread Jason R. Coombs
Change by Jason R. Coombs : -- nosy: +jaraco ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue46425] Multiple test modules fail to run if invoked directly

2022-01-22 Thread Andrew Svetlov
Andrew Svetlov added the comment: New changeset 1f8014c5b4ea7acee069ca453f6fbcad5990ebf0 by Nikita Sobolev in branch 'main': bpo-46425: fix direct invocation of `test_fileutils` and `test_zoneinfo` (GH-30792) https://github.com/python/cpython/commit/1f8014c5b4ea7acee069ca453f6fbcad5990ebf0

[issue46425] Multiple test modules fail to run if invoked directly

2022-01-22 Thread Andrew Svetlov
Andrew Svetlov added the comment: New changeset 57316c52bae5d6420f5067f3891ec328deb97305 by Nikita Sobolev in branch 'main': bpo-46425: fix direct invocation of `test_importlib` (GH-30682) https://github.com/python/cpython/commit/57316c52bae5d6420f5067f3891ec328deb97305 --

[issue46425] Multiple test modules fail to run if invoked directly

2022-01-22 Thread Andrew Svetlov
Andrew Svetlov added the comment: New changeset 55f4ec460ee6dcffc26180fd982ad89083c9acb1 by Nikita Sobolev in branch 'main': bpo-46425: use absolute imports in `test_sqlite3` (GH-30676) https://github.com/python/cpython/commit/55f4ec460ee6dcffc26180fd982ad89083c9acb1 --

[issue46425] Multiple test modules fail to run if invoked directly

2022-01-22 Thread Andrew Svetlov
Andrew Svetlov added the comment: New changeset 101a184d49756043a0c39dde6eca08b1891137a2 by Nikita Sobolev in branch 'main': bpo-46425: fix direct invocation of `test_traceback` (GH-30746) https://github.com/python/cpython/commit/101a184d49756043a0c39dde6eca08b1891137a2 --

[issue46396] Typing: test invalid usages of `Concatenate`

2022-01-22 Thread Jelle Zijlstra
Jelle Zijlstra added the comment: Let's change typing_extensions.py too in the same way. Speaking of typing-extensions, it'd be great if someone could review https://github.com/python/typing/pull/963 :) -- ___ Python tracker

[issue46425] Multiple test modules fail to run if invoked directly

2022-01-22 Thread Nikita Sobolev
Change by Nikita Sobolev : -- pull_requests: +28977 pull_request: https://github.com/python/cpython/pull/30792 ___ Python tracker ___

[issue46425] Multiple test modules fail to run if invoked directly

2022-01-22 Thread Andrew Svetlov
Andrew Svetlov added the comment: New changeset 6111d5dee2b24916ff95dba56efc569396a31851 by Miss Islington (bot) in branch '3.10': bpo-46425: fix direct invocation of `asyncio` tests (GH-30725) (#30782) https://github.com/python/cpython/commit/6111d5dee2b24916ff95dba56efc569396a31851

<    1   2   3   4   5   6   7   8   9   10   >