Bug 1706027 - python-uranium FTBFS with python 3.8
Summary: python-uranium FTBFS with python 3.8
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: python-uranium
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: ---
Assignee: Miro Hrončok
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: PYTHON38
TreeView+ depends on / blocked
 
Reported: 2019-05-03 12:11 UTC by Miro Hrončok
Modified: 2019-08-04 07:35 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2019-08-04 07:35:23 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
Full log from Copr (637.13 KB, text/plain)
2019-05-03 12:11 UTC, Miro Hrončok
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Github Ultimaker Uranium issues 498 0 None None None 2019-07-08 15:16:22 UTC

Description Miro Hrončok 2019-05-03 12:11:08 UTC
Created attachment 1562351 [details]
Full log from Copr

python-uranium 4.0.0-2.fc31 fails to build with Python 3.8 (in copr), but builds fine with 3.7 (in koji):

=================================== FAILURES ===================================
_________________________ test_getUsedSettings[data1] __________________________

data = {'code': '"x"', 'variables': ['x']}

    @pytest.mark.parametrize("data", test_getUsedSettings_data)
    def test_getUsedSettings(data):
        function = SettingFunction(data["code"])
        answer = function.getUsedSettingKeys()
>       assert len(answer) == len(data["variables"])
E       assert 0 == 1
E         -0
E         +1

tests/Settings/TestSettingFunction.py:141: AssertionError
_________________________ test_getUsedSettings[data7] __________________________

data = {'code': "sqrt('x')", 'variables': ['sqrt', 'x']}

    @pytest.mark.parametrize("data", test_getUsedSettings_data)
    def test_getUsedSettings(data):
        function = SettingFunction(data["code"])
        answer = function.getUsedSettingKeys()
>       assert len(answer) == len(data["variables"])
E       assert 1 == 2
E         -1
E         +2

tests/Settings/TestSettingFunction.py:141: AssertionError


Full log attached.

Comment 1 Miro Hrončok 2019-07-08 15:14:19 UTC
From 4.1.0:

_________________________ test_getUsedSettings[data1] __________________________

data = {'code': '"x"', 'variables': ['x']}

    @pytest.mark.parametrize("data", test_getUsedSettings_data)
    def test_getUsedSettings(data):
        function = SettingFunction(data["code"])
        answer = function.getUsedSettingKeys()
>       assert len(answer) == len(data["variables"])
E       assert 0 == 1
E         -0
E         +1

tests/Settings/TestSettingFunction.py:141: AssertionError
_________________________ test_getUsedSettings[data7] __________________________

data = {'code': "sqrt('x')", 'variables': ['sqrt', 'x']}

    @pytest.mark.parametrize("data", test_getUsedSettings_data)
    def test_getUsedSettings(data):
        function = SettingFunction(data["code"])
        answer = function.getUsedSettingKeys()
>       assert len(answer) == len(data["variables"])
E       assert 1 == 2
E         -1
E         +2

tests/Settings/TestSettingFunction.py:141: AssertionError

Comment 2 Miro Hrončok 2019-07-08 15:16:23 UTC
Reported upstream: https://github.com/Ultimaker/Uranium/issues/498

Comment 3 Miro Hrončok 2019-07-10 10:36:19 UTC
I have a patch (posted to the upstream issue). Built the package in copr with it, will commit it during next 3.8 rebuilds if uranium is not updated until then.


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