| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
| |
(`Python/import.c`) (#105980)
|
|
|
|
|
|
| |
targets (#105985)
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
|
|
|
|
|
|
|
| |
This new exception type is raised instead of `NotImplementedError` when
a path operation is not supported. It can be raised from `Path.readlink()`,
`symlink_to()`, `hardlink_to()`, `owner()` and `group()`. In a future
version of pathlib, it will be raised by `AbstractPath` for these methods
and others, such as `AbstractPath.mkdir()` and `unlink()`.
|
| |
|
|
|
|
| |
Add tests on PyWeakref_NewRef(), PyWeakref_GetObject(),
PyWeakref_GET_OBJECT() and PyWeakref_GetRef().
|
|
|
|
| |
(#105943)
|
|
|
| |
Co-authored-by: @sunmy2019
|
| |
|
|
|
|
|
|
| |
* Add tests on PyImport_AddModuleRef(), PyImport_AddModule() and
PyImport_AddModuleObject().
* pythonrun.c: Replace Py_XNewRef(PyImport_AddModule(name)) with
PyImport_AddModuleRef(name).
|
|
|
|
| |
bytecodes.c (#105913)
|
| |
|
|
|
|
| |
Fix a regression introduced in pythonGH-101251, causing GzipFile.flush() to
not flush the compressor (nor pass along the zip_mode argument).
|
|
|
| |
Co-authored-by: Unit03
|
|
|
|
|
|
| |
* Add test for long loops
* Clear ENTER_EXECUTOR when deopting code objects.
|
|
|
| |
SQLite 3.15.2 was released 2016-11-28.
|
|
|
|
| |
replace by their new versions (#105865)
|
|
|
|
| |
__defaults__ (GH-105847)
|
| |
|
|
|
| |
Some parts of the implementation of `typing.Protocol` had poor test coverage
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* The following tests were disabled since the initial ctypes commit
in 2006, commit babddfca758abe34ff12023f63b18d745fae7ca9:
* Callbacks.test_char_p()
* DeletePointerTestCase.test_X()
* NumberTestCase.test_perf()
* StructureTestCase.test_subclass_creation()
* Tests.test_X() of test_byteswap
* NumberTestCase.test_bool_from_address() was disabled in 2007 by
commit 5dc4fe09b7648f9801558e766b21a3d3b2dcad3b.
* Remove check_perf() and run_test() of test_numbers.
|
|
|
| |
Use a raw f-string in test_httpservers.py
|
|
|
| |
The MACHINE variable is no longer used in test_structures.
|
|
|
|
|
|
|
| |
Reenable 3 tests:
* test_overflow()
* test_basic_wstrings()
* test_toolong()
|
|
|
|
|
| |
* Remove "except: print(tp); raise" debug code.
* Remove unused NoNullHandle() function.
* Remove commented code.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Re-arrange `pathlib.Path` test methods in source code. No other changes.
The test methods are arranged in two groups. The first group checks
`stat()`, `open()`, `iterdir()`, `readlink()`, and derived methods like
`exists()`, `read_text()`, `glob()` and `resolve()`. The second group
checks all other `Path` methods. To minimise the diff I've maintained the
method order within groups where possible.
This patch prepares the ground for a new `_AbstractPath` class, which will
support methods in the first group above. By churning the test methods
here, subsequent patches will be easier to review and less likely to break
things.
|
|
|
|
| |
(#105801)
|
|
|
|
|
|
| |
* Move imports at top level and sort imports.
* Replace c_buffer() with create_string_buffer(): c_buffer is a
deprecated alias.
* PEP 8: Add empty lines for readability between imports and classes.
|
|
|
|
|
|
|
| |
* Replace operator.delitem(obj, index) with "del obj[index]".
* Replace operator.setitem(obj, index, value) with
"obj[index] = value".
* Replace delattr(obj, "attr) with "del obj.attr".
* Replace grc() with sys.getrefcount() for readability.
|
|
|
|
|
|
|
|
|
|
| |
Remove the @need_symbol('...') decorator of test.test_ctypes since
requested symbols are now always always available in ctypes.
Use the @unittest.skipUnless() decorator directly for the two types
only available on Windows:
* ctypes.WINFUNCTYPE
* ctypes.oledll
|
|
|
|
|
|
|
| |
test_xmlrpc_net was skipped since 2017:
commit 73ffd3f2036179ed54591ef0455e5ba5694ae5bd.
The public buildbot.python.org server has no XML-RPC interface
anymore, and no replacement server was found in 6 years.
|
| |
|
|
|
|
|
|
| |
Reimplement _iso8601_format() using the datetime isoformat() method.
Ignore the timezone.
Co-Authored-by: Paul Ganssle <1377457+pganssle@users.noreply.github.com>
|
|
|
| |
Deprecate two methods of creating typing.TypedDict classes with 0 fields using the functional syntax: `TD = TypedDict("TD")` and `TD = TypedDict("TD", None)`. Both will be disallowed in Python 3.15. To create a TypedDict class with 0 fields, either use `class TD(TypedDict): pass` or `TD = TypedDict("TD", {})`.
|
|
|
|
|
|
|
| |
(#105609)
Deprecate creating a typing.NamedTuple class using keyword arguments to denote the fields (`NT = NamedTuple("NT", x=int, y=str)`). This will be disallowed in Python 3.15. Use the class-based syntax or the functional syntax instead.
Two methods of creating `NamedTuple` classes with 0 fields using the functional syntax are also deprecated, and will be disallowed in Python 3.15: `NT = NamedTuple("NT")` and `NT = NamedTuple("NT", None)`. To create a `NamedTuple` class with 0 fields, either use `class NT(NamedTuple): pass` or `NT = NamedTuple("NT", [])`.
|
|
|
| |
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
|
| |
|
| |
|
| |
|
|
|
|
|
|
| |
Clean up pathlib tests.
Merge `PurePathTest` into `_BasePurePathTest`, and `PathTest` into
`_BasePathTest`.
|
|
|
|
|
|
| |
Using "import *" prevents linters like pyflakes to detect undefined names
(usually missing imports).
Replace c_voidp with c_void_p.
|
|
|
| |
Moroever, c_ulonglong and c_bool are always available.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
test_ctypes now gets attributes specific to Windows from the ctypes
module, rather than relying on "from ctypes import *".
Attributes:
* ctypes.FormatError
* ctypes.WINFUNCTYPE
* ctypes.WinError
* ctypes.WinDLL
* ctypes.windll
* ctypes.oledll
* ctypes.get_last_error()
* ctypes.set_last_error()
|
|
|
| |
This fixes the WASM buildbots.
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* GH-104554: Add RTSPS support to `urllib/parse.py`
RTSPS is the permanent scheme defined in
https://www.iana.org/assignments/uri-schemes/uri-schemes.xhtml
alongside RTSP and RTSPU schemes.
* 📜🤖 Added by blurb_it.
---------
Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
|
| |
|