Bug 2424601 - python-apprise fails to build with Python 3.15: AssertionError: assert 'NotifyType.INFO' == 'info'
Summary: python-apprise fails to build with Python 3.15: AssertionError: assert 'Notif...
Keywords:
Status: CLOSED COMPLETED
Alias: None
Product: Fedora
Classification: Fedora
Component: python-apprise
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Chris Caron
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: PYTHON3.15
TreeView+ depends on / blocked
 
Reported: 2025-12-23 14:07 UTC by Karolina Surma
Modified: 2026-01-25 23:43 UTC (History)
3 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2026-01-25 23:43:38 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Karolina Surma 2025-12-23 14:07:06 UTC
python-apprise fails to build with Python 3.15.0a3.

FAILED tests/test_apprise_cli.py::test_apprise_cli_persistent_storage - Asser...
FAILED tests/test_plugin_msg91.py::test_plugin_msg91_keywords - AssertionErro...
FAILED tests/test_plugin_notifiarr.py::test_plugin_notifiarr_notifications - ...
FAILED tests/test_plugin_workflows.py::test_plugin_workflows_simple_test - As...

Example failure:

__________________________ test_plugin_msg91_keywords __________________________

mock_post = <MagicMock name='post' id='140150458636608'>

    @mock.patch("requests.post")
    def test_plugin_msg91_keywords(mock_post):
        """NotifyMSG91() Templating."""
    
        response = mock.Mock()
        response.content = ""
        response.status_code = requests.codes.ok
    
        # Prepare Mock
        mock_post.return_value = response
    
        target = "+1 (555) 123-3456"
        template = "12345"
        authkey = "{}".format("b" * 32)
    
        message_contents = "test"
    
        # Variation of initialization without API key
        obj = Apprise.instantiate(
            f"msg91://{template}@{authkey}/{target}?:key=value&:mobiles=ignored"
        )
        assert isinstance(obj, NotifyMSG91)
        assert isinstance(obj.url(), str)
    
        # Send Notification
        assert obj.send(body=message_contents) is True
    
        # Validate expected call parameters
        assert mock_post.call_count == 1
        first_call = mock_post.call_args_list[0]
    
        # URL and message parameters are the same for both calls
        assert first_call[0][0] == "https://control.msg91.com/api/v5/flow/"
        response = loads(first_call[1]["data"])
        assert response["template_id"] == template
        assert response["short_url"] == 0
        assert len(response["recipients"]) == 1
        # mobiles is not over-ridden as it is a special reserved token
        assert response["recipients"][0]["mobiles"] == "15551233456"
    
        # Our base tokens
        assert response["recipients"][0]["body"] == message_contents
>       assert response["recipients"][0]["type"] == "info"
E       AssertionError: assert 'NotifyType.INFO' == 'info'
E         
E         - info
E         + NotifyType.INFO

https://docs.python.org/3.15/whatsnew/3.15.html

For the build logs, see:
https://copr-be.cloud.fedoraproject.org/results/@python/python3.15/fedora-rawhide-x86_64/09935271-python-apprise/

For all our attempts to build python-apprise with Python 3.15, see:
https://copr.fedorainfracloud.org/coprs/g/python/python3.15/package/python-apprise/

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.15:
https://copr.fedorainfracloud.org/coprs/g/python/python3.15/

Let us know here if you have any questions.

Python 3.15 is planned to be included in Fedora 45.
To make that update smoother, we're building Fedora packages with all pre-releases of Python 3.15.
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.

Comment 1 Chris Caron 2025-12-23 16:06:25 UTC
Thank you; this is a good bug that got missed and addressed here: https://github.com/caronc/apprise/pull/1473

I'll close this ticket off once I get it into a proper RPM package on EPEL.

Comment 2 Chris Caron 2026-01-25 23:43:38 UTC
Issue has been resolved and merged into upstream repo: https://bodhi.fedoraproject.org/updates/FEDORA-2026-79b03e2d0b


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