cpython/Lib/test/test_unittest
Barney Gale e4ff131e01
GH-44626, GH-105476: Fix `ntpath.isabs()` handling of part-absolute paths (#113829)
On Windows, `os.path.isabs()` now returns `False` when given a path that
starts with exactly one (back)slash. This is more compatible with other
functions in `os.path`, and with Microsoft's own documentation.

Also adjust `pathlib.PureWindowsPath.is_absolute()` to call
`ntpath.isabs()`, which corrects its handling of partial UNC/device paths
like `//foo`.

Co-authored-by: Jon Foster <jon@jon-foster.co.uk>
2024-01-13 07:36:05 +00:00
..
testmock gh-113569: Display calls in Mock.assert_has_calls failure when empty (GH-113573) 2024-01-04 21:11:34 +02:00
__init__.py
__main__.py
_test_warnings.py
dummy.py
support.py
test_assertions.py
test_async_case.py gh-110774: allow setting the Runner(loop_factory=...) from IsolatedAsyncioTestCase (#110776) 2023-10-31 15:03:54 -07:00
test_break.py
test_case.py
test_discovery.py gh-106584: Fix exit code for unittest in Python 3.12 (#106588) 2023-09-22 14:26:27 +02:00
test_functiontestcase.py
test_loader.py
test_program.py GH-44626, GH-105476: Fix `ntpath.isabs()` handling of part-absolute paths (#113829) 2024-01-13 07:36:05 +00:00
test_result.py
test_runner.py
test_setups.py
test_skipping.py gh-106584: Fix exit code for unittest in Python 3.12 (#106588) 2023-09-22 14:26:27 +02:00
test_suite.py