[issue41031] Inconsistency in C and python traceback printers

2021-09-05 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 9e31b3952f6101ef71ec029481b972169ab0e0f1 by Irit Katriel in branch 'main': bpo-41031: Match C and Python code formatting of unprintable exceptions and exceptions in the __main__ module. (GH-28139) https://github.com/python/cpyt

[issue1705520] API for excluding methods from unittest stack traces

2021-09-05 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: What to do with comprehensions and classes? Corresponding code objects are not easily accessible and they do not have corresponding function. It would be difficult to use the locals of the frame with comprehensions. Maybe use per-module registries of

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

2021-09-05 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Any suggestions for the format of output? Currently PR 28082 formats lines for subtest skipping, failure or error with a 2-space identation. Lines for skipping, failure or error in tearDown() or functions registered with addCallback() do not differ from a

[issue30856] unittest.TestResult.addSubTest should be called immediately after subtest finishes

2021-09-05 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- keywords: +patch nosy: +serhiy.storchaka nosy_count: 4.0 -> 5.0 pull_requests: +26606 stage: -> patch review pull_request: https://github.com/python/cpython/pull/28180 ___ Python tracker <https://bugs.p

[issue30856] unittest.TestResult.addSubTest should be called immediately after subtest finishes

2021-09-05 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Before b3468f79efa45c8adaf86c0b9b797b9b3d4c12a2 the TestResult methods (addFailure, addError, addSkip, addExpectedFailure, addUnexpectedSuccess) were called immediately after running the test method. After that change all skips, failures and errors were

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

2021-09-05 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: _STRUCT_TM_ITEMS was always set to 11 since issue25283. On what platform test_localtime_timezone fails now? -- nosy: +serhiy.storchaka ___ Python tracker <https://bugs.python.org/issue35

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

2021-09-05 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: There are too many issues with TestResult.debug(). It does not call tearDown() and doCleanups() if the test is skipped, failed or raises other exception (including errors in cleanup). It does not support skipping decorators. It does not support the

[issue44892] Configparser fails when the .cfg file contains comments

2021-09-06 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: By default configparser does not support inline comments. "# percentage sign '%'" is a part of value. If you want to support inline comments you should pass the inline_comment_prefixes argument. But note that it can break parsing e

[issue45104] Error in __new__ docs

2021-09-06 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I concur with Raymond. Originally it was "instance of cls". It was changed in issue15542 (6b16d938d6d1ccb443815e20e8812deed274dc09). -- nosy: +serhiy.storchaka ___ Python tracker <https://bu

[issue45125] Improve tests and docs of how `pickle` works with `SharedMemory` obejcts

2021-09-07 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Go ahead. Fix also other issues in tests: * All pickling tests should test with all supported protocols, not just with the default one. * self.assertTrue( isinstance(deserialized_sl, shared_memory.ShareableList) ) assertIsinstance

[issue45132] Remove deprecated __getitem__ methods

2021-09-08 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset d003a5bd2505a7fa04f50504b68ba8fca67349cd by Hugo van Kemenade in branch 'main': bpo-45132 Remove deprecated __getitem__ methods (GH-28225) https://github.com/python/cpython/commit/d003a5bd2505a7fa04f50504b68ba8fca67349cd -

[issue45132] Remove deprecated __getitem__ methods

2021-09-08 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Thank you for your contribution Hugo. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker <https://bugs.python.or

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

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

[issue45026] More compact range iterator

2021-09-08 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I have not benchmarked PR 28176 yet and do not know whether it have advantages over PR 27986 and how large. Slower __lenght_hint__ can make list(range(...)) slower for small ranges, but I do not know how small

[issue38371] Tkinter: deprecate the split() method

2021-09-08 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset f235dd0784b92824565c4a4e72adc70fa3eab68f by Erlend Egeberg Aasland in branch 'main': bpo-38371: Remove deprecated `tkinter` split() method (GH-28237) https://github.com/python/cpython/commit/f235dd0784b92824565c4a4e72adc7

[issue45017] move opcode-related logic from modulefinder to dis

2021-09-09 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: What is wrong with this? Is such logic used in the dis module or any other module outside modulefinder? -- nosy: +serhiy.storchaka ___ Python tracker <https://bugs.python.org/issue45

[issue45083] Need to use the exception class qualname when rendering exception (in C code)

2021-09-09 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: "{__module__}.{__name__}" is just incorrect reference if __name__ != __qualname__. Error messages should always use "{__module__}.{__qualname__}" or just "{__name__}". I see this as a bug. Fortunately very few code

[issue45150] Add a file_digest() function in hashlib

2021-09-09 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- nosy: +christian.heimes, gregory.p.smith type: -> enhancement versions: +Python 3.11 ___ Python tracker <https://bugs.python.org/issu

[issue45153] Except multiple types of exceptions with OR keyword is not working

2021-09-09 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Expression `A or B` gets you A if A is true. If you want to catch several types of exception by one "except", use except with a tuple: except (ConnectionResetError, ConnectionAbortedError): -- nosy: +serhiy.storchaka resolution: -&

[issue45144] Use subtests in test_peepholer

2021-09-09 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I am currently working on a feature which can be better in these cases that subTest(). It will allow to reduce the indentation level instead of increasing it. -- nosy: +serhiy.storchaka ___ Python tracker

[issue45155] Add default arguments for int.to_bytes()

2021-09-09 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: So (128).to_bytes() will raise an error, right? I afraid also that it will lead to some programs working correctly only on platforms with the most common byte order, just because authors are not aware of byte ordering. Currently the interface forces

[issue45155] Add default arguments for int.to_bytes()

2021-09-09 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Ah, signed=False by default, so (128).to_bytes() will work. But I still worry that it can provoke writing more errorprone code. -- ___ Python tracker <https://bugs.python.org/issue45

[issue45152] Prepare for splitting LOAD_CONST into several opcodes

2021-09-10 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: >From my experience, the largest cost in importing module (after I/O) is for >creating classes, especially classes with complex creation code: enums and >dataclasses (and namedtuples in past, but they were significanly optimized >since). Fo

[issue45162] Remove old deprecated unittest features

2021-09-10 Thread Serhiy Storchaka
New submission from Serhiy Storchaka : The proposed PR removes the following unittest features: * "fail*" and "assert*" aliases of TestCase methods. * Broken from start TestCase method assertDictContainsSubset(). * Ignored TestLoader.loadTestsFromModule() parameter use_loa

[issue45162] Remove old deprecated unittest features

2021-09-10 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- nosy: +ezio.melotti, michael.foord, rbcollins ___ Python tracker <https://bugs.python.org/issue45162> ___ ___ Python-bugs-list m

[issue45162] Remove old deprecated unittest features

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

[issue45164] int.to_bytes()

2021-09-10 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: b'\x1964' is a 3-bytes bytes object. >>> b = b'\x1964' >>> len(b) 3 >>> b[0], b[1], b[2] (25, 54, 52) What you what to get is b'\x19\x64'. And it is a different writing of b'\x19d&#x

[issue45132] Remove deprecated __getitem__ methods

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

[issue40563] Support pathlike objects on dbm/shelve

2021-09-10 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 707137b8637feef37b2e06a851fdca9d1b945861 by Henry-Joseph Audéoud in branch 'main': bpo-40563: Support pathlike objects on dbm/shelve (GH-21849) https://github.com/python/cpython/commit/707137b8637feef37b2e06a851fdca9d1b945861 -

[issue40563] Support pathlike objects on dbm/shelve

2021-09-10 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Thank you for your contribution, Hakan, Henry-Joseph. Sorry, David, there was already a PR, and it was not dead, it just waited for a coredev review. -- resolution: -> fixed stage: patch review -> resolved status: open -&g

[issue45132] Remove deprecated __getitem__ methods

2021-09-10 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 17a1b3e63a5db4e581c0ef52751df2314f7249fa by Serhiy Storchaka in branch 'main': bpo-45132: Fix the reStructuredText markup error. (GH-28270) https://github.com/python/cpython/commit/17a1b3e63a5db4e581c0ef52751df2

[issue44211] Duplicate '.bmp' key in mimetypes.py, maps to both 'image/bmp' and 'image/x-ms-bmp'

2021-09-10 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Since this change has a user-visible effect a NEWS entry is required. Just copy it from issue22589. -- nosy: +serhiy.storchaka ___ Python tracker <https://bugs.python.org/issue44

[issue35474] mimetypes.guess_all_extensions potentially mutates list

2021-09-11 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- keywords: +patch nosy: +serhiy.storchaka nosy_count: 1.0 -> 2.0 pull_requests: +26702 stage: -> patch review pull_request: https://github.com/python/cpython/pull/28286 ___ Python tracker <https://bugs.p

[issue35474] mimetypes.guess_all_extensions potentially mutates list

2021-09-11 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Also, mutating the result of guess_all_extensions() mutated the internal state of the MimeTypes object and affected the following calls of guess_all_extensions(). -- stage: patch review -> versions: +Python 3.10, Python 3.11, Python

[issue45163] Haiku build fix

2021-09-11 Thread Serhiy Storchaka
New submission from Serhiy Storchaka : New changeset 5f5b7d0c654488206ac13e27d9a5dcffbd2cc0af by David CARLIER in branch 'main': bpo-45163: Haiku build fix. (GH-28269) https://github.com/python/cpython/commit/5f5b7d0c654488206ac13e27d9a5dcffbd2cc0af -- nosy: +serhiy

[issue35474] mimetypes.guess_all_extensions potentially mutates list

2021-09-11 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 97ea18ecede8bfd33d5ab2dd0e7e2aada205 by Serhiy Storchaka in branch 'main': bpo-35474: Fix mimetypes.guess_all_extensions() potentially mutating list (GH-28286) https://github.com/python/cpyt

[issue44987] Speed up unicode normalization of ASCII strings

2021-09-11 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 9abd07e5963f966c4d6df8f4e4bf390ed8191066 by Dong-hee Na in branch 'main': bpo-44987: Speed up unicode normalization of ASCII strings (GH-28283) https://github.com/python/cpython/commit/9abd07e5963f966c4d6df8f4e4bf39

[issue44987] Speed up unicode normalization of ASCII strings

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

[issue45163] Haiku build fix

2021-09-11 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- resolution: -> fixed stage: -> resolved status: open -> closed ___ Python tracker <https://bugs.python.org/issue45163> ___ ___

[issue45175] No warning with '-W always' and cached import

2021-09-11 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: This warning is produced by the compiler when it compiles the source code. If it is already compiled, no compiler is involved. -- nosy: +serhiy.storchaka resolution: -> not a bug stage: -> resolved status: open -&g

[issue45174] DragonflyBSD fix nis module build

2021-09-11 Thread Serhiy Storchaka
New submission from Serhiy Storchaka : The main difference between platforms is that the first argument of the foreach function is int on some platforms and unsigned long on others. PR 28295 fixes code not only on DragonflyBSD, but on FreeBSD and OpenBSD, where it is unsigned long. It is a

[issue45155] Add default arguments for int.to_bytes()

2021-09-12 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: The struct module has 4 different modes. By default it uses not only native byte order, but native sizes and alignments which depend on OS and compiler. You need to know all these details just to understand the format codes. I think that the struct module

[issue45155] Add default arguments for int.to_bytes()

2021-09-12 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: In the stdlib, there is only one use of to_bytes() with sys.byteorder (2 in tests), 16 uses of to_bytes()/from_bytes() with 'little' (22 in tests) and 22 uses with 'big' (33 in tests). So making sys.byteorder the default will help al

[issue45105] Incorrect handling of unicode character \U00010900

2021-09-12 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: We recently discussed the RTLO attack on Python sources (sorry, I don't remember on what resource) and decided that we should do something with this. I think this is a related issue. -- ___ Python tr

[issue45176] Many regtest failures on Windows with non-ASCII account name

2021-09-12 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- components: +Unicode nosy: +ezio.melotti, serhiy.storchaka, vstinner type: -> behavior versions: +Python 3.11 -Python 3.8 ___ Python tracker <https://bugs.python.org/issu

[issue43413] tuple subclasses allow arbitrary kwargs

2021-09-12 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 92bf8691fb78f3484bf2daba836c416efedb1d8d by Serhiy Storchaka in branch 'main': bpo-43413: Fix handling keyword arguments in subclasses of some buitin classes (GH-26456) https://github.com/python/cpyt

[issue43413] tuple subclasses allow arbitrary kwargs

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

[issue45176] Many regtest failures on Windows with non-ASCII account name

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

[issue45155] Add default arguments for int.to_bytes()

2021-09-12 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Perhaps it is because "little" is checked first. One call of _PyUnicode_EqualToASCIIId() for "little" and two for "big". -- ___ Python tracker <h

[issue5846] Deprecate obsolete functions in unittest

2021-09-12 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- nosy: +serhiy.storchaka nosy_count: 4.0 -> 5.0 pull_requests: +26717 pull_request: https://github.com/python/cpython/pull/28303 ___ Python tracker <https://bugs.python.org/iss

[issue45181] Rewrite loading sqlite3 tests

2021-09-13 Thread Serhiy Storchaka
New submission from Serhiy Storchaka : The proposed PR rewrites the loading of sqlite3 tests. Instead of explicitly enumerating test modules and test classes in every module, and manually creating test suites, it uses unittest discover ability. Every new test files and test classes will be

[issue45181] Rewrite loading sqlite3 tests

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

[issue45177] Use shared test loader when possible when running test suite

2021-09-13 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: See issue45181. Most of this code is gone. Also, TestLoader has mutable attribute "errors". I am not sure that it is good idea to share it between unrelated tests. -- ___ Python track

[issue45182] Incorrect use of requires_zlib in test_bdist_rpm

2021-09-13 Thread Serhiy Storchaka
New submission from Serhiy Storchaka : requires_zlib is a decorator factory which returns a decorator, not a decorator. It should always be followed by parenthesis. In Lib/distutils/tests/test_bdist_rpm.py it is used improperly, so the corresponding tests were never ran

[issue45182] Incorrect use of requires_zlib in test_bdist_rpm

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

[issue5846] Deprecate obsolete functions in unittest

2021-09-13 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 851811f5772c43f72f445e2ce1ac3ea9da951ae3 by Serhiy Storchaka in branch 'main': bpo-5846: Do not use obsolete unittest functions. (GH-28303) https://github.com/python/cpython/commit/851811f5772c43f72f445e2ce1ac3e

[issue45167] deepcopy of GenericAlias with __deepcopy__ method is broken

2021-09-13 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I think it is better to narrow the __getattr__. It can break protocols using other special methods. -- nosy: +gvanrossum, serhiy.storchaka ___ Python tracker <https://bugs.python.org/issue45

[issue45182] Incorrect use of requires_zlib in test_bdist_rpm

2021-09-13 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 9260e6739865c966c3ec6c5c289e0b96f848403e by Serhiy Storchaka in branch 'main': bpo-45182: Fix incorrect use of requires_zlib in test_bdist_rpm (GH-28305) https://github.com/python/cpython/commit/9260e6739865c966c3ec6c5c289e0b

[issue45181] Rewrite loading sqlite3 tests

2021-09-13 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 3e19409d6443c66a6a7d62f58b2bb4e8330e56c4 by Serhiy Storchaka in branch 'main': bpo-45181: Simplify loading sqlite3 tests (GH-28304) https://github.com/python/cpython/commit/3e19409d6443c66a6a7d62f58b2bb4

[issue45181] Rewrite loading sqlite3 tests

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

[issue45184] Add `pop` function to remove context manager from (Async)ExitStack

2021-09-13 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: If you can remove context managers in arbitrary order it is no longer a stack. I think that it is just a wrong tool for your problem. Just maintain a collection of opened connections. Set or dict can be better that list or deque. -- nosy

[issue45185] test.test_ssl.TestEnumerations is not run

2021-09-13 Thread Serhiy Storchaka
New submission from Serhiy Storchaka : test.test_ssl.TestEnumerations is not run when run ssl tests. If add it to the list of test classes it fails: == ERROR: test_options (test.test_ssl.TestEnumerations

[issue45187] Some tests in test_socket are not run

2021-09-13 Thread Serhiy Storchaka
New submission from Serhiy Storchaka : Test classes ISOTPTest, J1939Test, BasicUDPLITETest, UDPLITETimeoutTest in test_socket are not included in the list of test classes and are not run by regrtest. -- components: Tests messages: 401725 nosy: serhiy.storchaka priority: normal

[issue45187] Some tests in test_socket are not run

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

[issue45187] Some tests in test_socket are not run

2021-09-13 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: PR 28317 makes test classes in test_socket be autocollected instead of explicitly enumerated. This will save as from similar errors in future. -- ___ Python tracker <https://bugs.python.org/issue45

[issue45167] deepcopy of GenericAlias with __deepcopy__ method is broken

2021-09-13 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I meant that the current __getattr__ breaks deepcopy(). It can break also other protocols. It already has a list of exceptions, we need to add "__copy__" and "__deepcopy__" in this list. Or maybe exclude all dunder names by default a

[issue45182] Incorrect use of requires_zlib in test_bdist_rpm

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

[issue45167] deepcopy of GenericAlias with __deepcopy__ method is broken

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

[issue44786] test_check_c_globals "crashed" and then "FutureWarning: Possible nested set at position 12"

2021-09-15 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- keywords: +patch nosy: +serhiy.storchaka nosy_count: 1.0 -> 2.0 pull_requests: +26765 stage: -> patch review pull_request: https://github.com/python/cpython/pull/28351 ___ Python tracker <https://bugs.p

[issue45202] Add 'remove_barry_from_BDFL' future to revert effects of 'from __future__ import barry_as_FLUFL'

2021-09-15 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: But why do you need to execute 'from __future__ import barry_as_FLUFL' in your interpreter at first place? Don't do this and you would not need to revert its effect. -- ___ Python

[issue44786] test_check_c_globals "crashed" and then "FutureWarning: Possible nested set at position 12"

2021-09-15 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Yes, [[] looks as the start of a character set containing nested sets (e.g. "[[a-z]--[p-q]]"). This feature is supported by regex and can be added in future versions of re, breaking the code which contain such co

[issue44786] test_check_c_globals "crashed" and then "FutureWarning: Possible nested set at position 12"

2021-09-15 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 1a9ef5798525bbb39a16c8af5c435b97352ee027 by Serhiy Storchaka in branch 'main': bpo-44786: Fix a warning in RE in c-analyzer (GH-28351) https://github.com/python/cpython/commit/1a9ef5798525bbb39a16c8af5c435b

[issue44786] test_check_c_globals "crashed" and then "FutureWarning: Possible nested set at position 12"

2021-09-15 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 89966f59c2e1d0558f8126458acc7d7ae2a8fef5 by Miss Islington (bot) in branch '3.10': bpo-44786: Fix a warning in RE in c-analyzer (GH-28351) (GH-28353) https://github.com/python/cpython/commit/89966f59c2e1d0558f8126458acc7d

[issue44786] test_check_c_globals "crashed" and then "FutureWarning: Possible nested set at position 12"

2021-09-15 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed type: -> behavior versions: +Python 3.10 ___ Python tracker <https://bugs.python

[issue45185] test.test_ssl.TestEnumerations is not run

2021-09-15 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset d897579a80da3f4572d96501c41bec6cacb10d84 by Nikita Sobolev in branch 'main': bpo-45185: enables `TestEnumerations` in `test_ssl` (GH-28330) https://github.com/python/cpython/commit/d897579a80da3f4572d96501c41bec

[issue45185] test.test_ssl.TestEnumerations is not run

2021-09-15 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Thank you Nikita! The test was added in issue38659 and was not backported, so it is 3.11 only issue. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed versions: -Python 3.10, P

[issue45212] Dangling threads in skipped tests in test_socket

2021-09-15 Thread Serhiy Storchaka
New submission from Serhiy Storchaka : Dangling threads are reported when run test_socket tests which raise SkipTest in setUp() in refleak mode. $ ./python -m test -R 3:3 test_socket -m testBCM 0:00:00 load avg: 2.53 Run tests sequentially 0:00:00 load avg: 2.53 [1/1] test_socket beginning 6

[issue45212] Dangling threads in skipped tests in test_socket

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

[issue45083] Need to use the exception class qualname when rendering exception (in C code)

2021-09-15 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- resolution: -> fixed status: open -> closed ___ Python tracker <https://bugs.python.org/issue45083> ___ ___ Python-bugs-

[issue45212] Dangling threads in skipped tests in test_socket

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

[issue45187] Some tests in test_socket are not run

2021-09-15 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- dependencies: +Dangling threads in skipped tests in test_socket ___ Python tracker <https://bugs.python.org/issue45187> ___ ___

[issue5846] Deprecate obsolete functions in unittest

2021-09-15 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I do not think that PR 28299 is correct. We want to deprecate these functions which are implemented in the unittest.loader module, not just names exported to the unittest module. -- ___ Python tracker <ht

[issue45216] Remove redundand information from difflib docstrings

2021-09-16 Thread Serhiy Storchaka
New submission from Serhiy Storchaka : Difflib docstrings contain short descriptions of functions and methods defined in the module and classes. It is redundant because pydoc shows descriptions for every function and method just few lines below. For example: | Methods

[issue5846] Deprecate obsolete functions in unittest

2021-09-16 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- pull_requests: +26797 pull_request: https://github.com/python/cpython/pull/28382 ___ Python tracker <https://bugs.python.org/issue5

[issue45212] Dangling threads in skipped tests in test_socket

2021-09-16 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 7dacb70485a0910eb298c24b4d051720ca56fb91 by Serhiy Storchaka in branch 'main': bpo-45212: Fix dangling threads in skipped tests in test_socket (GH-28361) https://github.com/python/cpython/commit/7dacb70485a0910eb298c24b4d0517

[issue45212] Dangling threads in skipped tests in test_socket

2021-09-16 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Yes, it is a deliberate choice. It is difficult to explain why it was passed without it -- dues to a specific order of calling tearDown() and callbacks registered with addCleanup() in different base classes. Using an event object would fix it too, but

[issue45220] Windows builds sometimes fail on Azure and GitHub Action: fatal error RC1116: RC terminating after preprocessor errors

2021-09-16 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset f798cef87faeb428bdb9ebf73df1a6146304 by Miss Islington (bot) in branch '3.10': bpo-45220: Avoid automatically selecting the Windows 11 SDK preview when building (GH-28393) (GH-28394) https://github.com/python/cpyt

[issue45227] Control reaches end of non-void function in specialize.c

2021-09-16 Thread Serhiy Storchaka
New submission from Serhiy Storchaka : Python/specialize.c: In function ‘load_method_fail_kind’: Python/specialize.c:878:1: warning: control reaches end of non-void function [-Wreturn-type] 878 | } | ^ -- components: Interpreter Core messages: 402001 nosy: serhiy.storchaka

[issue43413] tuple subclasses allow arbitrary kwargs

2021-09-16 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- pull_requests: +26815 pull_request: https://github.com/python/cpython/pull/28403 ___ Python tracker <https://bugs.python.org/issue43

[issue43413] tuple subclasses allow arbitrary kwargs

2021-09-16 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I do not have any particular use case. It was a side effect of unification code that uses _PyArg_NoKeywords(). -- ___ Python tracker <https://bugs.python.org/issue43

[issue45228] Stack buffer overflow in parsing J1939 network address

2021-09-16 Thread Serhiy Storchaka
New submission from Serhiy Storchaka : It can be reproduced when run test.test_socket.J1939Test (omitted in regrtests now, see issue45187) with Address Sanitizer. See for example https://github.com/python/cpython/pull/28317/checks?check_run_id=3625390397. It can be reproduced when run

[issue45187] Some tests in test_socket are not run

2021-09-16 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- dependencies: +Stack buffer overflow in parsing J1939 network address ___ Python tracker <https://bugs.python.org/issue45

[issue45187] Some tests in test_socket are not run

2021-09-16 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Running omitted tests exposed some real bugs. See issue45212, issue45228. -- ___ Python tracker <https://bugs.python.org/issue45

[issue45228] Stack buffer overflow in parsing J1939 network address

2021-09-17 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- versions: +Python 3.10, Python 3.9 ___ Python tracker <https://bugs.python.org/issue45228> ___ ___ Python-bugs-list mailin

[issue45228] Stack buffer overflow in parsing J1939 network address

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

[issue45229] Always use unittest for collecting tests in regrtests

2021-09-17 Thread Serhiy Storchaka
New submission from Serhiy Storchaka : Currently regrtest supports two ways of collecting and running tests in module. 1. If the module contains the "test_main" function, regrtest just calls it. This function usually calls run_unittest() with a list of test classes, composed manual

[issue45229] Always use unittest for collecting tests in regrtests

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

[issue45229] Always use unittest for collecting tests in regrtests

2021-09-17 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: PR 28405 contains simple changes for 60 test files. It does not cover files which use complex code for generating list of test classes and running doctests (because there are subtle differences between running doctests with run_doctest() and via

[issue45229] Always use unittest for collecting tests in regrtests

2021-09-17 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- dependencies: +Some tests in test_socket are not run, test.test_ssl.TestEnumerations is not run ___ Python tracker <https://bugs.python.org/issue45

[issue45228] Stack buffer overflow in parsing J1939 network address

2021-09-17 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 773319545ba60577bc140aa46eac83b360240b7a by Serhiy Storchaka in branch 'main': bpo-45228: Fix stack buffer overflow in parsing J1939 address (GH-28404) https://github.com/python/cpython/commit/773319545ba60577bc140aa46eac83

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