Edgewall Software
Modify

Opened 6 months ago

Closed 5 days ago

Last modified 5 days ago

#13880 closed defect (fixed)

Many tests failing caused by changes of os.path.isabs() in Python 3.13 on Windows

Reported by: Jun Omae Owned by: Jun Omae
Priority: normal Milestone: 1.6.1
Component: general Version:
Severity: normal Keywords: python3.13 windows
Cc: Branch:
Release Notes:

Adapted the tests to changes in behavior of os.path.isabs() in Python 3.13 on Windows.

API Changes:
Internal Changes:

Description

On Windows, isabs() no longer considers paths starting with exactly one slash (\ or /) to be absolute.

What’s New In Python 3.13 — Python 3.13.3 documentation

Python 3.13

Python 3.13.3 (tags/v3.13.3:6280bb5, Apr  8 2025, 14:47:33) [MSC v.1943 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import os.path
>>> os.path.isabs('C:/var')
True
>>> os.path.isabs('/var')
False
>>>

Python 3.12

Python 3.12.10 (tags/v3.12.10:0cc8128, Apr  8 2025, 12:21:36) [MSC v.1943 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import os.path
>>> os.path.isabs('C:/var')
True
>>> os.path.isabs('/var')
True
>>>

Test results

======================================================================
ERROR: test_repository_providers_disabled (trac.upgrades.tests.db32.UpgradeTestCase.test_repository_providers_disabled)
Repository configuration is rewritten when repository providers
----------------------------------------------------------------------
Traceback (most recent call last):
  File "D:\a\trac\trac\trac\upgrades\tests\db32.py", line 150, in test_repository_providers_disabled
    db_provider.add_repository('repos3', '/var/git/repos3', 'git')
    ~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "D:\a\trac\trac\trac\versioncontrol\api.py", line 222, in add_repository
    raise TracError(_("The repository directory must be absolute"))
trac.core.TracError: The repository directory must be absolute

...

----------------------------------------------------------------------
Ran 2507 tests in 116.758s

FAILED (errors=49, skipped=17)

Attachments (0)

Change History (2)

comment:1 by Jun Omae, 5 days ago

Milestone: next-stable-1.6.x1.6.1
Release Notes: modified (diff)
Resolution: fixed
Status: newclosed

Fixed in [17916] and merged in [17917].

comment:2 by Jun Omae, 5 days ago

Owner: set to Jun Omae

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Jun Omae.
The resolution will be deleted. Next status will be 'reopened'.
to The owner will be changed from Jun Omae to the specified user.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.