aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/Lib/test
Commit message (Collapse)AuthorAge
...
* gh-132775: Use _PyCode GetScriptXIData() (gh-134511)Eric Snow9 days
|
* GH-131798: Turn _LOAD_SMALL_INT into _LOAD_CONST_INLINE_BORROW in the JIT ↵Nadeshiko Manju9 days
| | | | (GH-134406)
* gh-134323: Fix the new `threading.RLock.locked` method (#134368)Duprat9 days
| | | Co-authored-by: Kumar Aditya <kumaraditya@python.org>
* gh-132775: Use _PyObject_GetXIData (With Fallback) (gh-134440)Eric Snow9 days
| | | This change includes some semi-related refactoring of queues and channels.
* gh-71339: Use new assertion methods in tests (GH-129046)Serhiy Storchaka9 days
|
* gh-131357: Add some extra tests for empty bytes and bytearray (#134458)Sergey Miryanov9 days
|
* gh-127840: Revert "gh-127840: pass flags and address from send_fds ↵Gregory P. Smith9 days
| | | | | | | (GH-127841)" (#134482) Revert "gh-127840: pass flags and address from send_fds (GH-127841)" This reverts commit 518c95b5529ed3379b5a3065b09f71411efe72fb.
* gh-134062: Fix hash collisions in IPv4Network and IPv6Network (GH-134063)Mike Salvatore9 days
| | | | gh-134062: Fix hash collisions in IPv4Network and IPv6Network gh-134062: Add hash collision regression test
* gh-127840: pass flags and address from send_fds (GH-127841)Marcin Bachry9 days
| | | | | socket: pass flags and address from send_fds Co-authored-by: Peter Bierma <zintensitydev@gmail.com>
* gh-127960 Fix the REPL to set the correct namespace by setting the correct ↵Yuichiro Tachibana (Tsuchiya)9 days
| | | | | | | | `__main__` module (gh-134275) The `__main__` module imported in the `_pyrepl` module points to the `_pyrepl` module itself when the interpreter was launched without `-m` option and didn't execute a module, while it's an unexpected behavior that `__main__` can be `_pyrepl` and relative imports such as `from . import *` works based on the `_pyrepl` module. Co-authored-by: Łukasz Langa <lukasz@langa.pl>
* gh-132775: Use _PyFunction_VerifyStateless() and _PyCode_VerifyStateless() ↵Eric Snow10 days
| | | | (gh-134439)
* gh-133982: Run unclosed file test on all io implementations (gh-134165)Cody Maloney10 days
| | | | | | | | | | | Update `test_io` `_check_warn_on_dealloc` to use `self.` to dispatch to different I/O implementations. Update the `_pyio` implementation to match expected behavior, using the same `_dealloc_warn` design as the C implementation uses to report the topmost `__del__` object. The FileIO one now matches all the others, so can use IOBase. There was a missing check on closing (self._fd must be valid), add that check
* gh-71253: Match _io exception in _pyio (gh-133985)Cody Maloney10 days
| | | | | | Test was only testing _io, expanded to cover _pyio. Co-authored-by: Peter Bierma <zintensitydev@gmail.com>
* gh-133982: Update test_bufio to use self.open (gh-133983)Cody Maloney10 days
|
* gh-90871: fix connection backlog offset in asyncio (gh-134392)Christian Harries10 days
| | | | Co-authored-by: Łukasz Langa <lukasz@langa.pl> Co-authored-by: Kumar Aditya <kumaraditya@python.org>
* gh-132775: Support Fallbacks in _PyObject_GetXIData() (gh-133482)Eric Snow10 days
| | | It now supports a "full" fallback to _PyFunction_GetXIData() and then `_PyPickle_GetXIData()`. There's also room for other fallback modes if that later makes sense.
* gh-131185: Use a proper thread-local for cached thread states (gh-132510)Peter Bierma10 days
| | | | | Switches over to a _Py_thread_local in place of autoTssKey, and also fixes a few other checks regarding PyGILState_Ensure after finalization. Note that this doesn't fix concurrent use of PyGILState_Ensure with Py_Finalize; I'm pretty sure zapthreads doesn't work at all, and that needs to be fixed seperately.
* gh-132542: Only run test_native_id_after_fork if native_id is supported ↵Noam Cohen10 days
| | | | (GH-134408)
* gh-72680: Fix false positives when using zipfile.is_zipfile() (GH-134250)Tim Hatch10 days
| | | | | | | | | | | | | | | bpo-28494: Improve zipfile.is_zipfile reliability The zipfile.is_zipfile function would only search for the EndOfZipfile section header. This failed to correctly identify non-zipfiles that contained this header. Now the zipfile.is_zipfile function verifies the first central directory entry. Changes: * Extended zipfile.is_zipfile to verify zipfile catalog * Added tests to validate failure of binary non-zipfiles * Reuse 'concat' handling for is_zipfile Co-authored-by: John Jolly <john.jolly@gmail.com>
* GH-131798: Narrow types more aggressively in the JIT (GH-134373)Brandt Bucher10 days
|
* GH-131798: Narrow the return type of _GET_LEN to int (GH-133345)Nadeshiko Manju10 days
|
* gh-134215: PyREPL: Do not show underscored modules by default during ↵Kevin Hernández10 days
| | | | | | | autocompletion (gh-134267) Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com> Co-authored-by: Tomas R. <tomas.roun8@gmail.com> Co-authored-by: Łukasz Langa <lukasz@langa.pl>
* gh-90117: handle dict and mapping views in pprint (#30135)devdanzin11 days
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Teach pprint about dict views with PrettyPrinter._pprint_dict_view and ._pprint_dict_items_view. * Use _private names for _dict_*_view attributes of PrettyPrinter. * Use explicit 'items' keyword when calling _pprint_dict_view from _pprint_dict_items_view. * 📜🤖 Added by blurb_it. * Improve tests * Add tests for collections.abc.[Keys|Items|Mapping|Values]View support in pprint. * Add support for collections.abc.[Keys|Items|Mapping|Values]View in pprint. * Split _pprint_dict_view into _pprint_abc_view, so pretty-printing normal dict views and ABC views is handled in two simple methods. * Simplify redundant code. * Add collections.abc views to some existing pprint tests. * Test that views from collection.UserDict are correctly formatted by pprint. * Handle recursive dict and ABC views. * Test that subclasses of ABC views work in pprint. * Test dict views coming from collections.Counter. * Test ABC views coming from collections.ChainMap. * Test odict views coming from collections.OrderedDict. * Rename _pprint_abc_view to _pprint_mapping_abc_view. * Add pprint test for mapping ABC views where ._mapping has a custom __repr__ and fix ChainMap test. * When a mapping ABC view has a ._mapping that defines a custom __repr__, dispatch pretty-printing it by that __repr__. * Add tests for ABC mapping views subclasses that don't replace __repr__, also handling those that delete ._mapping on instances. * Simplify the pretty printing of ABC mapping views. * Add a test for depth handling when pretty printing dict views. * Fix checking whether the view type is a subclass of an items view, add a test. * Move construction of the views __repr__ set out of _safe_repr. --------- Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com> Co-authored-by: Éric <merwok@netwok.org> Co-authored-by: Oleg Iarygin <oleg@arhadthedev.net> Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com> Co-authored-by: Gregory P. Smith <greg@krypto.org>
* gh-127146: xfail more Emscripten stack overflows (#134358)Hood Chatham11 days
| | | Adds some additional test xfails for Emscripten stack overflows. Also corrects a test skip for test_io.
* gh-122781: Allow empty offset for `%z` in `strptime` (#132922)Stan Ulbrych11 days
| | | | | * commit * Move tests
* gh-132542: Set native thread ID after fork (GH-132701)Noam Cohen11 days
|
* gh-133980: use atomic store in `PyObject_GenericSetDict` (#133988)Kumar Aditya11 days
|
* GH-134282: Always borrow references LOAD_CONST (GH-134284)Mark Shannon11 days
|
* gh-86802: Fix asyncio memory leak; shielded task exceptions log once through ↵Christian Harries11 days
| | | | | the exception handler (gh-134331) Co-authored-by: Łukasz Langa <lukasz@langa.pl>
* gh-62824: Add alias for iso-8859-8-i which is the same as iso-8859-8 ↵Bas Bloemsaat11 days
| | | | | | (gh-134306) Co-authored-by: David Goncalves <davegoncalves@gmail.com> Co-authored-by: Oleg Iarygin <oleg@arhadthedev.net>
* gh-131357: Add tests for zero-sized bytes objects in test_bytes.py (#134234)abstractedfox11 days
| | | Co-authored-by: Victor Stinner <vstinner@python.org>
* Clean up test_posixpath (GH-134315)Serhiy Storchaka11 days
| | | | | | * Ensure that created files and dirs are always removed after test. Now addCleanup() does not conflict with tearDown(). * Use os_helper.unlink() and os_helper.rmdir(). * Import TESTFN from os_helper.
* gh-133374: fix test_python_legacy_windows_stdio (GH-134080)Inada Naoki11 days
|
* gh-133940: test_strftime incorrectly calculates expected week (GH-134281)Gustaf11 days
| | | Let the system determine the correct tm_wday and tm_isdst.
* gh-132983: Add zstd version info to `test.pythoninfo` (#134230)Stan Ulbrych11 days
| | | Co-authored-by: Victor Stinner <vstinner@python.org>
* GH-131798: Add _POP_CALL_TWO_LOAD_CONST_INLINE_BORROW (GH-134268)Tomas R.11 days
|
* gh-131178: remove runtime tests for `http.server` CLI (#134287)Bénédikt Tran11 days
| | | | | The runtime behavior of `http.server` CLI is hard to test on an arbitrary platform. As such, tests asserting the correctness of `python -m http.server` are temporarily removed and will be rewritten later once a universal solution has been found.
* gh-134235: Import Autocomplete for Builtin Modules (GH-134277)Tom Wang11 days
| | | | | | | * added enhancement auto completing import with sys builtins --------- Co-authored-by: Hunter <hyoung3@gmail.com>
* GH-131798: Split CALL_LIST_APPEND into several uops (GH-134240)Diego Russo12 days
|
* Revert "gh-128639: Don't assume one thread in subinterpreter finalization ↵Peter Bierma12 days
| | | | | | | (gh-128640)" (gh-134256) This reverts commit 9859791f9e116c827468f307ac0770286c975c8b. The original change broke the iOS and android buildbots, where the tests are run single-process.
* gh-117596: Add more tests for os.path with invalid paths (GH-134189)Serhiy Storchaka12 days
|
* gh-126883: Add check that timezone fields are in range for ↵Semyon Moroz12 days
| | | | | | | | | | `datetime.fromisoformat` (#127242) It was previously possible to specify things like `+00:90:00` which would be equivalent to `+01:30:00`, but is not a valid ISO8601 string. --------- Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com> Co-authored-by: Paul Ganssle <1377457+pganssle@users.noreply.github.com>
* GH-131798: Narrow the return type of isinstance for some known arguments in ↵Tomas R.12 days
| | | | the JIT (GH-133172)
* gh-128639: Don't assume one thread in subinterpreter finalization (gh-128640)Peter Bierma12 days
| | | | Incidentally, this also fixed the warning not showing up if a subinterpreter wasn't cleaned up via _interpreters.destroy. I had to update some of the tests as a result.
* gh-134214: Fix test case in pyrepl (gh-134223)Jessica Temporal12 days
|
* gh-134158: Fix PyREPL coloring of double braces in f/t-strings (gh-134159)Loïc Simon12 days
| | | | | Co-authored-by: Loïc Simon <loic.simon@napta.io> Co-authored-by: Peter Bierma <zintensitydev@gmail.com> Co-authored-by: Łukasz Langa <lukasz@langa.pl>
* gh-125843: indicate which C function caused a `curses.error` (#125844)Bénédikt Tran12 days
| | | | | - Rename error helpers with a `curses_set_error_*` prefix instead of `PyCurses*`. - Cleanly report both NULL and ERR cases. - Raise `curses.error` in `is_linetouched` instead of a `TypeError`.
* gh-134097: Print number of refs & blocks after each statement in new REPL ↵Kirill Podoprigora12 days
| | | | | (gh-134136) Co-authored-by: Łukasz Langa <lukasz@langa.pl>
* gh-131178: Add tests for `http.server` command-line interface (#132540)ggqlq12 days
|
* gh-133779: Revert Windows generation of pyconfig.h and go back to a static ↵Steve Dower12 days
| | | | | | header. (GH-133966) Extension builders must specify Py_GIL_DISABLED if they want to link to the free-threaded builds. This was usually the case already, but this change guarantees it in all circumstances.