Edgewall Software
Modify

Opened 6 hours ago

#13880 new defect

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

Reported by: Jun Omae Owned by:
Priority: normal Milestone: next-stable-1.6.x
Component: general Version:
Severity: normal Keywords: python3.13 windows
Cc: Branch:
Release Notes:
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 (0)

Modify Ticket

Change Properties
Set your email in Preferences
Action
as new The ticket will remain with no owner.
The ticket will be disowned.
as The resolution will be set. Next status will be 'closed'.
The owner will be changed from (none) to anonymous. Next status will be 'assigned'.

Add Comment


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