[issue45030] Integer overflow in __reduce__ of the range iterator

2021-08-27 Thread Serhiy Storchaka
New submission from Serhiy Storchaka : >>> it = iter(range(2**63-10, 2**63-1, 10)) >>> it.__reduce__() (, (range(9223372036854775798, -9223372036854775808, 10),), 0) >>> import pickle >>> it2 = pickle.loads(pickle.dumps(it)) >>>

[issue45030] Integer overflow in __reduce__ of the range iterator

2021-08-27 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- keywords: +patch pull_requests: +26443 stage: -> patch review pull_request: https://github.com/python/cpython/pull/28000 ___ Python tracker <https://bugs.python.org/issu

[issue25130] Make tests more PyPy compatible

2021-08-27 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Unfortunately Martin's comments are not available now, after shutting down the Rietveld service. Here is a new PR which contains extraction of PyPy changes related to calling gc.collect() for 3.8. I removed changes which look specific for PyPy and

[issue25130] Make tests more PyPy compatible

2021-08-27 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- pull_requests: +26447 pull_request: https://github.com/python/cpython/pull/28005 ___ Python tracker <https://bugs.python.org/issue25

[issue43913] unittest module cleanup functions not run unless tearDownModule() is defined

2021-08-27 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: There are several other bugs in the code for cleaning up classes and modules: * Functions registered with addClassCleanup() are not called if tearDownClass is set to None or its look up raises AttributeError. * Buffering in TestResult blows up when

[issue43913] unittest module cleanup functions not run unless tearDownModule() is defined

2021-08-27 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- pull_requests: +26448 pull_request: https://github.com/python/cpython/pull/28006 ___ Python tracker <https://bugs.python.org/issue43

[issue45037] theme-change.py for tkinter lib

2021-08-28 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I do not think this should be included in the Tkinter library. As for demos, there were Tkinter demos in 2.7 (Demo/tkinter), but they were removed. -- ___ Python tracker <https://bugs.python.org/issue45

[issue45037] theme-change.py for tkinter lib

2021-08-28 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I do not know. There are no issue numbers in changesets which removed them. -- ___ Python tracker <https://bugs.python.org/issue45

[issue25130] Make tests more PyPy compatible

2021-08-28 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset eb263f9a356f5c5f21b8d5ce20bac92f31c40cad by Carl Friedrich Bolz-Tereick in branch 'main': bpo-25130: Make unit-test about restricting the maximum number of nested blocks cpython-only (GH-28002) https://github.com/python/cpyt

[issue25130] Make tests more PyPy compatible

2021-08-28 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- pull_requests: +26462 pull_request: https://github.com/python/cpython/pull/28017 ___ Python tracker <https://bugs.python.org/issue25

[issue25130] Make tests more PyPy compatible

2021-08-28 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 779b9aef4fb2750f57ce07f0efbc8ce8406e43ab by Miss Islington (bot) in branch '3.10': bpo-25130: Make unit-test about restricting the maximum number of nested blocks cpython-only (GH-28002) (GH-28016) https://github.com/python/cpyt

[issue25130] Make tests more PyPy compatible

2021-08-28 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 1046cd06b0e2f20b3be93de83d49b684956af98d by Serhiy Storchaka in branch '3.9': [3.9] bpo-25130: Make unit-test about restricting the maximum number of nested blocks cpython-only (GH-28002) (GH-28017) https://github.com/python/cpyt

[issue36521] Consider removing docstrings from co_consts in code objects

2021-08-28 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: If we are going to move docstring out of co_consts, I would make it a code object attribute rather than argument of MAKE_FUNCTION. It saves time on function creation. Most functions do not change docstring after creation. It is the same as code docstring

[issue25130] Make tests more PyPy compatible

2021-08-29 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- pull_requests: +26467 pull_request: https://github.com/python/cpython/pull/28021 ___ Python tracker <https://bugs.python.org/issue25

[issue25130] Make tests more PyPy compatible

2021-08-29 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 07d3d54f4e84b1259b800884b202701f69e408d8 by Serhiy Storchaka in branch 'main': bpo-25130: Make SQLite tests more compatible with PyPy (GH-28021) https://github.com/python/cpython/commit/07d3d54f4e84b1259b800884b20270

[issue25130] Make tests more PyPy compatible

2021-08-29 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- pull_requests: +26469 pull_request: https://github.com/python/cpython/pull/28023 ___ Python tracker <https://bugs.python.org/issue25

[issue45042] Many multiprocessing tests are silently skipped since 3.9

2021-08-29 Thread Serhiy Storchaka
New submission from Serhiy Storchaka : Here is a list of multiprocessing tests which are run in 3.8 but are not found in 3.9+: OtherTest.test_answer_challenge_auth_failure OtherTest.test_deliver_challenge_auth_failure TestInitializers.test_manager_initializer

[issue45042] Many multiprocessing tests are silently skipped since 3.9

2021-08-29 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- priority: normal -> high ___ Python tracker <https://bugs.python.org/issue45042> ___ ___ Python-bugs-list mailing list Un

[issue25130] Make tests more PyPy compatible

2021-08-29 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset dab74d68e3f8391cb4b404b397ab80e2e0188d1f by Serhiy Storchaka in branch '3.9': [3.9] bpo-25130: Make SQLite tests more compatible with PyPy (GH-28021) (GH-28023) https://github.com/python/cpyt

[issue25130] Make tests more PyPy compatible

2021-08-29 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 2a8127cafe1d196f858a3ecabf5f1df3eebf9a12 by Serhiy Storchaka in branch 'main': bpo-25130: Add calls of gc.collect() in tests to support PyPy (GH-28005) https://github.com/python/cpython/commit/2a8127cafe1d196f858a3ecabf5f1d

[issue25130] Make tests more PyPy compatible

2021-08-29 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- pull_requests: +26473 pull_request: https://github.com/python/cpython/pull/28027 ___ Python tracker <https://bugs.python.org/issue25

[issue25130] Make tests more PyPy compatible

2021-08-29 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- pull_requests: +26474 pull_request: https://github.com/python/cpython/pull/28028 ___ Python tracker <https://bugs.python.org/issue25

[issue41620] Python Unittest does not return results object when the test is skipped

2021-08-29 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- keywords: +patch pull_requests: +26475 stage: test needed -> patch review pull_request: https://github.com/python/cpython/pull/28030 ___ Python tracker <https://bugs.python.org/issu

[issue25130] Make tests more PyPy compatible

2021-08-29 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 330aaee39cbc556be01534b1dbf65d20f04c by Serhiy Storchaka in branch '3.9': [3.9] bpo-25130: Add calls of gc.collect() in tests to support PyPy (GH-28005). (GH-28028) https://github.com/python/cpyt

[issue45026] More compact range iterator

2021-08-29 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Microbenchmarks show some speed up: Iterating large range: $ ./python -m timeit -s 'r = range(0, 10**20, 3**35)' 'list(r)' Before: 2000 loops, best of 5: 199 usec per loop After: 2000 loops, best of 5: 113 usec per loop Unpickling:

[issue45043] Typo (change 'two' to 'three')

2021-08-29 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: In what case the day field is three characters long? Could you show an example? -- nosy: +serhiy.storchaka ___ Python tracker <https://bugs.python.org/issue45

[issue45046] Add support of context managers in unittest

2021-08-29 Thread Serhiy Storchaka
New submission from Serhiy Storchaka : Methods setUp() and tearDown() of TestClass allow to add some code executed before and after every test method. In many cases addCleanup() is more convenient than tearDown() -- you do not need to keep data for cleaning up as TestCase attributes

[issue45046] Add support of context managers in unittest

2021-08-29 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- keywords: +patch pull_requests: +26490 stage: -> patch review pull_request: https://github.com/python/cpython/pull/28045 ___ Python tracker <https://bugs.python.org/issu

[issue15351] Add to unittest.TestCase support for using context managers

2021-08-29 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Opened issue45046 for completely different approach to this problem. -- nosy: +serhiy.storchaka ___ Python tracker <https://bugs.python.org/issue15

[issue41046] unittest: make skipTest a classmethod

2021-08-29 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Since you always can raise a SkipTest in setUpClass() and setUpModule() and changing skipTest() can break existing code (for example the code which calls cls.skipTest(None, reason) for some strange reasons), I think that it is not worth to change it

[issue36674] "unittest.TestCase.debug" should honour "skip" (and other test controls)

2021-08-29 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- pull_requests: -14706 ___ Python tracker <https://bugs.python.org/issue36674> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue36674] "unittest.TestCase.debug" should honour "skip" (and other test controls)

2021-08-29 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: See issue41620 for run() returning None. -- dependencies: +Python Unittest does not return results object when the test is skipped nosy: +serhiy.storchaka ___ Python tracker <https://bugs.python.org/issue36

[issue35741] unittest.skipUnless(time._STRUCT_TM_ITEMS == 11, "needs tm_zone support") doesn't work

2021-08-29 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- nosy: +lemburg, p-ganssle ___ Python tracker <https://bugs.python.org/issue35741> ___ ___ Python-bugs-list mailing list Unsub

[issue25894] unittest subTest failure causes result to be omitted from listing

2021-08-29 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Were not subtests proposed as a more flexible replacement of parametrized tests? I think that every subtest should be counted as a separate test case: in verbose mode it should output a separate line and in non-verbose mode it should output a separate

[issue45047] Update demo files

2021-08-30 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: There are currently many resources in internet where you can find examples and demos on Python. The CPython distribution should not include every piece of code written by Python learner. You can publish it on GitHab, on StackOverflow, on more specialized

[issue45049] added cbrt() in MATH_RADIANS_METHODDEF which is missing before

2021-08-30 Thread Serhiy Storchaka
New submission from Serhiy Storchaka : We do not need a duplicate of function declaration. -- nosy: +serhiy.storchaka resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python tracker <https://bugs.python.or

[issue45042] Many multiprocessing tests are silently skipped since 3.9

2021-08-30 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Thank you Nikita. The difference between the original and the proposed in PR 28060 code is that in the original code the conditional was tested at the testing time, while in the proposed code it is tested at the loading time. I do not know what effect

[issue45042] Many multiprocessing tests are silently skipped since 3.9

2021-08-30 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Here is the implementation of the second option: def requires_hashdigest(digestname, openssl=None, usedforsecurity=True): def decorator(func): if isinstance(func, type): setUpClass = func.__dict__.get('setUpClass')

[issue45050] created unittest file analyze_text.py

2021-08-30 Thread Serhiy Storchaka
New submission from Serhiy Storchaka : It is unneeded. -- nosy: +serhiy.storchaka resolution: -> rejected stage: -> resolved status: open -> closed ___ Python tracker <https://bugs.python.or

[issue43913] unittest module cleanup functions not run unless tearDownModule() is defined

2021-08-30 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- pull_requests: +26515 pull_request: https://github.com/python/cpython/pull/28071 ___ Python tracker <https://bugs.python.org/issue43

[issue45053] MD5SumTests.test_checksum_fodder fails on Windows

2021-08-30 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Test is failing because TESTFN contains now non-ASCII characters. The path is written to stdout using the default stdout encoding on Windows (like cp1252), but test searches the path encoded with UTF-8. This test should fail also on other platforms with

[issue45052] WithProcessesTestSharedMemory.test_shared_memory_basics fails on Windows

2021-08-30 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: It may be a bug in the constructor of SharedMemory. It ignores the size argument on Windows. -- components: +Library (Lib), Windows nosy: +davin, paul.moore, pitrou, serhiy.storchaka, steve.dower, tim.golden, zach.ware

[issue45057] Simplify RegressionTestResult

2021-08-31 Thread Serhiy Storchaka
New submission from Serhiy Storchaka : RegressionTestResult is a subclass of TextTestResult, but it completely ignores the TextTestResult function of outputting results and re-implements it. The problem of this is not only duplicating the code, but that if TextTestResult is changed (for

[issue45057] Simplify RegressionTestResult

2021-08-31 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- keywords: +patch pull_requests: +26524 stage: -> patch review pull_request: https://github.com/python/cpython/pull/28081 ___ Python tracker <https://bugs.python.org/issu

[issue45057] Simplify RegressionTestResult

2021-08-31 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: RegressionTestResult was introduced in issue34582. -- nosy: +ezio.melotti, michael.foord, rbcollins, steve.dower, vstinner ___ Python tracker <https://bugs.python.org/issue45

[issue45057] Simplify RegressionTestResult

2021-08-31 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- versions: +Python 3.10, Python 3.11, Python 3.9 ___ Python tracker <https://bugs.python.org/issue45057> ___ ___ Python-bugs-list m

[issue25894] unittest subTest failure causes result to be omitted from listing

2021-08-31 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- keywords: +patch pull_requests: +26525 stage: test needed -> patch review pull_request: https://github.com/python/cpython/pull/28082 ___ Python tracker <https://bugs.python.org/issu

[issue25894] unittest subTest failure causes result to be omitted from listing

2021-08-31 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: PR 28082 is a draft that implements this idea. Skipped and failed (but not successfully passed) subtests are now reported separately, as a character (sFE) or a line ("skipped", "FAIL", "ERROR"). The description of the subtest

[issue37719] addSubtest not calling addFailure and addError

2021-08-31 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- resolution: -> duplicate stage: -> resolved status: open -> closed superseder: -> unittest subTest does not call addFailure ___ Python tracker <https://bugs.python

[issue17576] PyNumber_Index() is not int-subclass friendly (or operator.index() docs lie)

2021-08-31 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: PyNumber_Index() now always returns an instance of int. - If the argument is a direct int then return it. - If it is a subclass of int then return a direct int copy. - Otherwise call type(obj).__index__(obj) - If a direct int, return it - If a subclass of

[issue27175] Unpickling Path objects

2021-08-31 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I think that you mean that PosixPath will be converted to PurePosixPath on Windows, and WindowsPath will be converted to PureWindowsPath on Posix. In can be easily achieved by making alias PosixPath=PurePosixPath on Windows and WindowsPath=PureWindowsPath

[issue45059] Typo: using "==" instead of "="

2021-08-31 Thread Serhiy Storchaka
New submission from Serhiy Storchaka : While searching for use the equality operator with None I found the possible use of "==" instead of "=" (assignment) in Lib/idlelib/idle_test/test_macosx.py. for platform, types in ('darwin', alltypes), ('

[issue45059] Typo: using "==" instead of "="

2021-08-31 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- keywords: +patch pull_requests: +26529 stage: -> patch review pull_request: https://github.com/python/cpython/pull/28086 ___ Python tracker <https://bugs.python.org/issu

[issue45060] Do not use the equality operators with None

2021-08-31 Thread Serhiy Storchaka
New submission from Serhiy Storchaka : There are few uses of operators "==" and "!=" with None in the stdlib (against more than 8000 uses of "is" and "is not"). It is very uncommon writing, contradicts PEP 8, and is not safe in general. One bug was f

[issue45060] Do not use the equality operators with None

2021-08-31 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- keywords: +patch pull_requests: +26530 stage: -> patch review pull_request: https://github.com/python/cpython/pull/28087 ___ Python tracker <https://bugs.python.org/issu

[issue45058] Undefined behavior for syntax "except AError or BError:" accepted by interpreter

2021-08-31 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I get the correct result (a ValueError traceback) in 3.9.6, I get a crash in 3.9.0. It was a bug in 3.9.0 which is now fixed. The syntax is legal. -- nosy: +serhiy.storchaka ___ Python tracker <ht

[issue27175] Unpickling Path objects

2021-08-31 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Pickling Patch can be useful in multiprocessing, you can pass the Patch argument to function executed in other process. It can also be useful if you save the state of your program and restore it at the next start. In both cases you pickle and unpickle on

[issue45060] Do not use the equality operators with None

2021-08-31 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 3c65457156d87e55010507d616b4eecb7a02883d by Serhiy Storchaka in branch 'main': bpo-45060: Get rid of few uses of the equality operators with None (GH-28087) https://github.com/python/cpython/commit/3c65457156d87e55010507d616b4ee

[issue45060] Do not use the equality operators with None

2021-08-31 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- pull_requests: +26535 pull_request: https://github.com/python/cpython/pull/28092 ___ Python tracker <https://bugs.python.org/issue45

[issue45060] Do not use the equality operators with None

2021-08-31 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- pull_requests: +26536 pull_request: https://github.com/python/cpython/pull/28093 ___ Python tracker <https://bugs.python.org/issue45

[issue45039] use ADDOP_LOAD_CONST consistently

2021-08-31 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 70ccee418d1f9d34ed15cfe7104221f9cfd27d03 by Irit Katriel in branch 'main': bpo-45039: Consistently use ADDOP_LOAD_CONST in compiler rather than ADDOP_O(c, LOAD_CONST,...) (GH-28015) https://github.com/python/cpyt

[issue45057] Simplify RegressionTestResult

2021-08-31 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 2b76a5322fdf71d62b531fd765085f96f981c244 by Serhiy Storchaka in branch 'main': bpo-45057: Simplify RegressionTestResult (GH-28081) https://github.com/python/cpython/commit/2b76a5322fdf71d62b531fd765085f

[issue45057] Simplify RegressionTestResult

2021-08-31 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- pull_requests: +26546 pull_request: https://github.com/python/cpython/pull/28103 ___ Python tracker <https://bugs.python.org/issue45

[issue45053] MD5SumTests.test_checksum_fodder fails on Windows

2021-08-31 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: $ touch тест $ ./python Tools/scripts/md5sum.py тест d41d8cd98f00b204e9800998ecf8427e тест $ LC_ALL=uk_UA.koi8u PYTHONIOENCODING=koi8-u ./python Tools/scripts/md5sum.py тест d41d8cd98f00b204e9800998ecf8427e тест $ LC_ALL=uk_UA.koi8u PYTHONIOENCODING=utf-8

[issue45057] Simplify RegressionTestResult

2021-08-31 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset e527f79fa8b472dd534fc360e998fe8213e6471e by Serhiy Storchaka in branch '3.9': [3.9] bpo-45057: Simplify RegressionTestResult (GH-28081) (GH-28103) https://github.com/python/cpython/commit/e527f79fa8b472dd534fc360e998fe

[issue45057] Simplify RegressionTestResult

2021-08-31 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 3d56272e4ecaef9f38c1f48430364701d34b3ee4 by Miss Islington (bot) in branch '3.10': bpo-45057: Simplify RegressionTestResult (GH-28081) (GH-28101) https://github.com/python/cpython/commit/3d56272e4ecaef9f38c1f484303647

[issue45060] Do not use the equality operators with None

2021-08-31 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset e09dd8aafd6f9aef03945c417267806d47084a5d by Serhiy Storchaka in branch '3.9': [3.9] bpo-45060: Get rid of few uses of the equality operators with None (GH-28087). (GH-28093) https://github.com/python/cpyt

[issue45057] Simplify RegressionTestResult

2021-08-31 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker <https://bugs.python.or

[issue45058] Undefined behavior for syntax "except AError or BError:" accepted by interpreter

2021-09-01 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Yes, it is syntactically correct. It can even make sense. But the meaning is different from "except (AError, BError)". If it looks confusing to you, it is a work of linters to warn about misleading or suspi

[issue27175] Unpickling Path objects

2021-09-01 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: It would be nice to have simple general mechanism for everloading names of modules, classes and functions, similar to _compat_pickle. Currently you can do this with creating a subclass of Unpickler and overloading find_class(), but it is not so convenient

[issue27175] Unpickling Path objects

2021-09-01 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: _compat_pickle is only used with protocol < 3. -- ___ Python tracker <https://bugs.python.org/issue27175> ___ ___ Python-

[issue45080] functools._HashedSeq implements __hash__ but not __eq__

2021-09-01 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: 1. self.hashvalue == other.hashvalue is not enough. Different tuples can have the same hash value, so you steel need to compare their context. 2. _HashedSeq is only used as a key in a dictionary. When you look up a key in dictionary, it compares hashes

[issue45092] Make set ordered like dict

2021-09-02 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- resolution: -> duplicate stage: -> resolved status: open -> closed superseder: -> Make set ordered ___ Python tracker <https://bugs.python

[issue45093] Add method to compare dicts accounting for order

2021-09-02 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: For tests it can be more convenient to use list(d1.items()) == list(d2.items()) because it can produce better report on failure. You can add a simple helper function if you use it multiple times in tests. -- nosy: +serhiy.storchaka

[issue37694] Crash when calling zipimport.zipimporter.__new__().()

2021-09-03 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Because the zipimport module is now implemented in Python. -- ___ Python tracker <https://bugs.python.org/issue37

[issue45090] Add pairwise to What's New in Python 3.10; mark it as new in itertools docs

2021-09-03 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- nosy: +rhettinger stage: -> needs patch ___ Python tracker <https://bugs.python.org/issue45090> ___ ___ Python-bugs-list mai

[issue20658] os.environ.clear() fails with empty keys (posix.unsetenv)

2021-09-03 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: > For the very specific case of os.environ.clear(), the C function clearenv() > could be used if available. It is bad in any way. The supposed example of using clear(): old_environ = dict(os.environ) os.environ.clear() os.environ.

[issue45053] MD5SumTests.test_checksum_fodder fails on Windows

2021-09-04 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: It will not work in all cases. For example if the stdio encoding is UTF-8 and the filesystem encoding is Latin1. Or the stdio encoding is CP1251 and the filesystem encoding is UTF-8. I am not also sure that it gives us the result which we want if it

[issue45097] "The loop argument is deprecated" reported when user code does not use it

2021-09-04 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- nosy: +serhiy.storchaka ___ Python tracker <https://bugs.python.org/issue45097> ___ ___ Python-bugs-list mailing list Unsub

[issue45097] "The loop argument is deprecated" reported when user code does not use it

2021-09-04 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- assignee: -> serhiy.storchaka ___ Python tracker <https://bugs.python.org/issue45097> ___ ___ Python-bugs-list mailing list Un

[issue45097] "The loop argument is deprecated" reported when user code does not use it

2021-09-04 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- keywords: +patch pull_requests: +26589 stage: -> patch review pull_request: https://github.com/python/cpython/pull/28153 ___ Python tracker <https://bugs.python.org/issu

[issue45097] "The loop argument is deprecated" reported when user code does not use it

2021-09-04 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: There are several calls of gather() and sleep() with the loop argument from the asyncio library. Since all deprecation warnings were silenced in tests it was unnoticed. PR 28153 fixes the asyncio library, enables deprecation warnings in tests, fixes

[issue45097] "The loop argument is deprecated" reported when user code does not use it

2021-09-04 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- pull_requests: +26590 pull_request: https://github.com/python/cpython/pull/28154 ___ Python tracker <https://bugs.python.org/issue45

[issue45097] "The loop argument is deprecated" reported when user code does not use it

2021-09-04 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset c967bd523caabb05bf5988449487d7c1717f3ac6 by Serhiy Storchaka in branch '3.9': [3.9] bpo-45097: Remove incorrect deprecation warnings in asyncio. (GH-28153) https://github.com/python/cpython/commit/c967bd523caabb05bf5988449487d7

[issue45097] "The loop argument is deprecated" reported when user code does not use it

2021-09-04 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset c2970fdec52788b6d9ff419ab7e31f255d87433d by Serhiy Storchaka in branch 'main': bpo-45097: Add more tests for shutdown_asyncgens() (GH-28154) https://github.com/python/cpython/commit/c2970fdec52788b6d9ff419ab7e31f

[issue45030] Integer overflow in __reduce__ of the range iterator

2021-09-04 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 936f6a16b9ef85bd56b18a247b962801e954c30e by Serhiy Storchaka in branch 'main': bpo-45030: Fix integer overflow in __reduce__ of the range iterator (GH-28000) https://github.com/python/cpython/commit/936f6a16b9ef85bd56b18a247b9628

[issue45102] unittest: add tests for skipping and errors in cleanup

2021-09-04 Thread Serhiy Storchaka
New submission from Serhiy Storchaka : The proposed PR adds tests for skipping and errors in cleanup: after success, after failure, and in combination with the expectedFailure decorator. -- components: Library (Lib) messages: 401056 nosy: ezio.melotti, michael.foord, rbcollins

[issue45102] unittest: add tests for skipping and errors in cleanup

2021-09-04 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- keywords: +patch pull_requests: +26595 stage: -> patch review pull_request: https://github.com/python/cpython/pull/28166 ___ Python tracker <https://bugs.python.org/issu

[issue45097] "The loop argument is deprecated" reported when user code does not use it

2021-09-04 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 2ad114ddffbeeef1d20f26571b85a66974295667 by Miss Islington (bot) in branch '3.10': [3.10] bpo-45097: Add more tests for shutdown_asyncgens() (GH-28154) (GH-28159) https://github.com/python/cpyt

[issue45097] "The loop argument is deprecated" reported when user code does not use it

2021-09-04 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker <https://bugs.python.or

[issue45030] Integer overflow in __reduce__ of the range iterator

2021-09-04 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker <https://bugs.python.or

[issue45042] Many multiprocessing tests are silently skipped since 3.9

2021-09-04 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset dd7b816ac87e468e2fa65ce83c2a03fe1da8503e by Nikita Sobolev in branch 'main': bpo-45042: Now test classes decorated with `requires_hashdigest` are not skipped (GH-28060) https://github.com/python/cpyt

[issue45042] Many multiprocessing tests are silently skipped since 3.9

2021-09-04 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- pull_requests: +26598 pull_request: https://github.com/python/cpython/pull/28169 ___ Python tracker <https://bugs.python.org/issue45

[issue45042] Many multiprocessing tests are silently skipped since 3.9

2021-09-04 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset ab58269ab3b784bef33a613cd0a68914065a9134 by Serhiy Storchaka in branch '3.9': [3.9] bpo-45042: Now test classes decorated with `requires_hashdigest` are not skipped (GH-28060) (GH-28169) https://github.com/python/cpyt

[issue45042] Many multiprocessing tests are silently skipped since 3.9

2021-09-04 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker <https://bugs.python.or

[issue45102] unittest: add tests for skipping and errors in cleanup

2021-09-05 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 28264269de9ff88d9ee7110fc56ac2d2db275bec by Serhiy Storchaka in branch 'main': bpo-45102: unittest: add tests for skipping and errors in cleanup (GH-28166) https://github.com/python/cpython/commit/28264269de9ff88d9ee7110fc56ac2

[issue45102] unittest: add tests for skipping and errors in cleanup

2021-09-05 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker <https://bugs.python.or

[issue45026] More compact range iterator

2021-09-05 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- pull_requests: +26603 pull_request: https://github.com/python/cpython/pull/28176 ___ Python tracker <https://bugs.python.org/issue45

[issue45026] More compact range iterator

2021-09-05 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: PR 28176 implements idea proposed by Dennis in msg400396. It keeps the current and stop values instead of the initial start, index and initial length. I do not have data yet, but it is expected that it's iteration may be faster (for large integers)

[issue45105] Incorrect handling of unicode character \U00010900

2021-09-05 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- status: open -> pending ___ Python tracker <https://bugs.python.org/issue45105> ___ ___ Python-bugs-list mailing list Un

<    12   13   14   15   16   17   18   19   20   21   >