Bug 2584161 - btrfs-backup-ng fails to build with Python 3.16: AssertionError in TestTheWizardDerivesAUsableValue
Summary: btrfs-backup-ng fails to build with Python 3.16: AssertionError in TestTheWiz...
Keywords:
Status: NEW
Alias: None
Product: Fedora
Classification: Fedora
Component: btrfs-backup-ng
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Michael Berry
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks: PYTHON3.16
TreeView+ depends on / blocked
 
Reported: 2026-11-25 14:30 UTC by Karolina Surma
Modified: 2026-11-25 14:30 UTC (History)
3 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Karolina Surma 2026-11-25 14:30:51 UTC
btrfs-backup-ng fails to build with Python 3.16.0a2.

__ TestTheWizardDerivesAUsableValue.test_a_subdirectory_gets_the_mount_point ___
tests/test_require_mount_enforced.py:340: in test_a_subdirectory_gets_the_mount_point
    assert self._derive("/mnt/usb-drive/backup", ["/mnt/usb-drive"]) == (
E   AssertionError: assert True == '/mnt/usb-drive'
E    +  where True = <function TestTheWizardDerivesAUsableValue._derive at 0x7f56532264b0>('/mnt/usb-drive/backup', ['/mnt/usb-drive'])
E    +    where <function TestTheWizardDerivesAUsableValue._derive at 0x7f56532264b0> = <tests.test_require_mount_enforced.TestTheWizardDerivesAUsableValue object at 0x7f5653231a90>._derive
___ TestTheWizardDerivesAUsableValue.test_a_deep_target_finds_the_real_mount ___
tests/test_require_mount_enforced.py:348: in test_a_deep_target_finds_the_real_mount
    assert self._derive("/mnt/backup/box1/home", ["/mnt/backup"]) == "/mnt/backup"
E   AssertionError: assert True == '/mnt/backup'
E    +  where True = <function TestTheWizardDerivesAUsableValue._derive at 0x7f56532264b0>('/mnt/backup/box1/home', ['/mnt/backup'])
E    +    where <function TestTheWizardDerivesAUsableValue._derive at 0x7f56532264b0> = <tests.test_require_mount_enforced.TestTheWizardDerivesAUsableValue object at 0x7f5653216c40>._derive
____ TestTheWizardDerivesAUsableValue.test_a_raw_uri_target_is_seen_through ____
tests/test_require_mount_enforced.py:377: in test_a_raw_uri_target_is_seen_through
    assert self._derive("raw:///mnt/usb-backup/home", ["/mnt/usb-backup"]) == (
E   AssertionError: assert True == '/mnt/usb-backup'
E    +  where True = <function TestTheWizardDerivesAUsableValue._derive at 0x7f56532264b0>('raw:///mnt/usb-backup/home', ['/mnt/usb-backup'])
E    +    where <function TestTheWizardDerivesAUsableValue._derive at 0x7f56532264b0> = <tests.test_require_mount_enforced.TestTheWizardDerivesAUsableValue object at 0x7f56531d3bd0>._derive
https://docs.python.org/3.16/whatsnew/3.16.html

For the build logs, see:
https://copr-be.cloud.fedoraproject.org/results/@python/python3.16/fedora-rawhide-x86_64/11359572-btrfs-backup-ng/

For all our attempts to build btrfs-backup-ng with Python 3.16, see:
https://copr.fedorainfracloud.org/coprs/g/python/python3.16/package/btrfs-backup-ng/

Testing and mass rebuild of packages is happening in copr.
You can follow these instructions to test locally in mock if your package builds with Python 3.16:
https://copr.fedorainfracloud.org/coprs/g/python/python3.16/

Let us know here if you have any questions.

Python 3.16 is planned to be included in Fedora 47.
To make that update smoother, we're building Fedora packages with all pre-releases of Python 3.16.
A build failure prevents us from testing all dependent packages (transitive [Build]Requires),
so if this package is required a lot, it's important for us to get it fixed soon.

We'd appreciate help from the people who know this package best,
but if you don't want to work on this now, let us know so we can try to work around it on our side.


Note You need to log in before you can comment on or make changes to this bug.