Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 02 Mar 2020 06:55:39 +0000
From:      bugzilla-noreply@freebsd.org
To:        python@FreeBSD.org
Subject:   [Bug 244546] lang/python37: Backport pull request 17960 (Fix for broken ctypes)
Message-ID:  <bug-244546-21822-SYHgdj7Xn7@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-244546-21822@https.bugs.freebsd.org/bugzilla/>
References:  <bug-244546-21822@https.bugs.freebsd.org/bugzilla/>

index | next in thread | previous in thread | raw e-mail

https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=244546

--- Comment #2 from Loïc Bartoletti <lbartoletti@FreeBSD.org> ---
I use this test file: https://bugs.python.org/file28155/test184_lib.tgz

Tl;DR

python 3.8.2 OK (but KO for 3.8.1
python < 3.7 OK

---

python3.8.1 (old pkg installed) KO

```
    ~/test184_lib  python3.8 test184_lib.py                                
                                                                               
                                                                               
   ✔  1m 42s   07:35:08  
Traceback (most recent call last):
  File "test184_lib.py", line 10, in <module>
    extn.argtypes = [Foo]
TypeError: item 1 in _argtypes_ passes a union by value, which is unsupported.
```

python 3.8.2 (from ports) OK
```
 python3.8 test184_lib.py                                                     
                                                                               
                                                                  ✔  9s  
07:43:01  
1.2300000190734863
1.2300000190734863
1067282596
x:nan
y:nan
z:-9072
```
python 3.7.6 KO
```
python3.7 test184_lib.py                                                       
                                                                               
                                                            ✔  3m 14s  
07:49:41  
Traceback (most recent call last):
  File "test184_lib.py", line 10, in <module>
    extn.argtypes = [Foo]
TypeError: item 1 in _argtypes_ passes a union by value, which is unsupported.
```

python 3.7.6 (with the pathces) OK
```
    ~/test184_lib  python3.7 test184_lib.py                                
                                                                               
                                                                               
          INT ✘  07:43:42  
1.2300000190734863
1.2300000190734863
1067282596
x:nan
y:nan
z:-9184
```

python 3.6 OK
```
 python3.6 test184_lib.py                                                      
                                                                               
                                                                    INT ✘ 
07:44:53  
1.2300000190734863
1.2300000190734863
1067282596
x:nan
y:nan
z:-8720


python 3.5 OK
```
 python3.5 test184_lib.py                                                      
                                                                               
                                                                ✔  36s  
07:52:02  
1.2300000190734863
1.2300000190734863
1067282596
x:nan
y:nan
z:-8656

-- 
You are receiving this mail because:
You are the assignee for the bug.

help

Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-244546-21822-SYHgdj7Xn7>