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:
Matt Clay 2021-05-07 17:26:41 -07:00 committed by GitHub
parent d4413dac08
commit bcb64054ed
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 1 additions and 1 deletions

View file

View file

@ -62,4 +62,4 @@ def test_vendored_conflict():
import pkgutil import pkgutil
import sys import sys
test_vendored(vendored_pkg_names=['sys', 'pkgutil']) # pass a real package we know is already loaded 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