Bug 25428

Summary: test_sysconfig.py use python3.5 path
Product: Mageia Reporter: Pierre Pontier <pierre.pontier>
Component: RPM PackagesAssignee: Python Stack Maintainers <python>
Status: RESOLVED OLD QA Contact:
Severity: minor    
Priority: Normal Keywords: 7final
Version: 7   
Target Milestone: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Source RPM: python3-3.7.3-1.mga7.src.rpm CVE:
Status comment:

Description Pierre Pontier 2019-09-12 00:07:18 CEST
I think there are an error in the test_sysconfig.py from python3.7 testsuite.

test_parse_makefile use the python3.5 instead of python3.7

/usr/lib64/python3.7/test/test_sysconfig.py
[code]
    def test_parse_makefile(self):
        self.addCleanup(unlink, TESTFN)
        with open(TESTFN, "w") as makefile:
            print("var1=a$(VAR2)", file=makefile)
            print("VAR2=b$(var3)", file=makefile)
            print("var3=42", file=makefile)
            print("var4=$/invalid", file=makefile)
            print("var5=dollar$$5", file=makefile)
            print("var6=${var3}/lib/python3.5/config-$(VAR2)$(var5)"
                  "-x86_64-linux-gnu", file=makefile)
        vars = sysconfig._parse_makefile(TESTFN)
        self.assertEqual(vars, {
            'var1': 'ab42',
            'VAR2': 'b42',
            'var3': 42,
            'var4': '$/invalid',
            'var5': 'dollar$5',
            'var6': '42/lib/python3.5/config-b42dollar$5-x86_64-linux-gnu',
        })
[/code]
Pierre Pontier 2019-09-12 00:28:44 CEST

Keywords: (none) => 7final

Comment 1 Lewis Smith 2019-09-12 21:33:38 CEST
Name        : lib64python3.7-testsuite
Version     : 3.7.3
Release     : 1.mga7
Source RPM  : python3-3.7.3-1.mga7.src.rpm
Summary     : Testsuite for the Python 3.7.3 standard library

> print("var6=${var3}/lib/python3.5/config-$(VAR2)$(var5)"
> 'var6': '42/lib/python3.5/config-b42dollar$5-x86_64-linux-gnu',
@Pierre : Is this just something you 'spotted', or did it cause you an error ?
If the latter, please say what that was.

Assigning to the Python group.

Assignee: bugsquad => python
Source RPM: lib64python3.7-testsuite => python3-3.7.3-1.mga7.src.rpm

Comment 2 Pierre Pontier 2019-09-12 23:33:10 CEST
Sorry.
Just spotted. Apparently it doesn't cause any error.

I hunt all the referencies of python 3.5 after my update to mga7.
Comment 3 Aurelien Oudelet 2021-07-06 13:17:59 CEST
Mageia 7 is EOL since July 1st 2021.
There will not have any further bugfix for this release.

You are encouraged to upgrade to Mageia 8 as soon as possible.

@reporter, if this bug still apply with Mageia 8, please let us know it.

@packager, if you work on the Mageia 7 version of your package, please check the Mageia 8 package if issue is also present. In this case, please fix the Mageia 8 version instead.

This bug report will be closed OLD if there is no further notice within 1st September 2021.
Comment 4 Marja Van Waes 2021-09-07 14:09:30 CEST
Hi bug reporter and hi assignee and others involved,

Please reopen this bug report if it is still valid for Mageia 8 or 9(cauldron), and change "Version:" in the upper left of this report accordingly.

This report is being closed as OLD because it was filed against Mageia 7, for which  support ended on June 30th 2021.

Thanks,
Marja

Resolution: (none) => OLD
Status: NEW => RESOLVED