[pybsddb] `module 'test.support' has no attribute 'find_unused_port'` with python3.9

Jesus Cea jcea at jcea.es
Fri Oct 30 01:59:11 CET 2020


On 18/6/20 13:11, Michał Górny wrote:
> Hello,
> 
> When running bsddb3 tests on py3.9, I get the following error:
> 
> ======================================================================
> ERROR: test01_basic_replication (bsddb3.tests.test_replication.DBReplicationManager)
> ----------------------------------------------------------------------   
> Traceback (most recent call last):                                       
>   File "/usr/lib/python3.9/unittest/case.py", line 59, in testPartExecutor                                                                         
>     yield                                                                                                                                          
>   File "/usr/lib/python3.9/unittest/case.py", line 593, in run                                                                                     
>     self._callTestMethod(testMethod)                                                                                                               
>   File "/usr/lib/python3.9/unittest/case.py", line 550, in _callTestMethod                                              
>     method()
>   File "/tmp/portage/dev-python/bsddb3-6.2.7/work/bsddb3-6.2.7-python3_9/build/lib/bsddb3/tests/test_replication.py", line 108, in test01_basic_rep
> lication
>     master_port = test_support.find_unused_port()
> AttributeError: module 'test.support' has no attribute 'find_unused_port' 
> 
> ----------------------------------------------------------------------
> 
> FWICS upstream moved the relevant function to test.support.socket_helper
> in 16994912c93e8e5db7365d48b75d67d3f70dd7b2.
Thanks, Michał. Releases 6.2.8 and 18.1.0 will fix this in a few days.

-- 
Jesús Cea Avión                         _/_/      _/_/_/        _/_/_/
jcea at jcea.es - https://www.jcea.es/    _/_/    _/_/  _/_/    _/_/  _/_/
Twitter: @jcea                        _/_/    _/_/          _/_/_/_/_/
jabber / xmpp:jcea at jabber.org  _/_/  _/_/    _/_/          _/_/  _/_/
"Things are not so easy"      _/_/  _/_/    _/_/  _/_/    _/_/  _/_/
"My name is Dump, Core Dump"   _/_/_/        _/_/_/      _/_/  _/_/
"El amor es poner tu felicidad en la felicidad de otro" - Leibniz

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: OpenPGP digital signature
URL: <https://mailman.jcea.es/pipermail/pybsddb/attachments/20201030/36f119c8/attachment.bin>


More information about the pybsddb mailing list