Another unit test fix for Python 3.10. (#74628)
* Another unit test fix for Python 3.10. * Add missing __init__.py file.
This commit is contained in:
parent
d4413dac08
commit
bcb64054ed
2 changed files with 1 additions and 1 deletions
0
test/units/_vendor/__init__.py
Normal file
0
test/units/_vendor/__init__.py
Normal file
|
@ -62,4 +62,4 @@ def test_vendored_conflict():
|
|||
import pkgutil
|
||||
import sys
|
||||
test_vendored(vendored_pkg_names=['sys', 'pkgutil']) # pass a real package we know is already loaded
|
||||
assert 'pkgutil, sys' in str(w[0].message) # ensure both conflicting modules are listed and sorted
|
||||
assert any('pkgutil, sys' in str(msg.message) for msg in w) # ensure both conflicting modules are listed and sorted
|
||||
|
|
Loading…
Reference in a new issue