Another unit test fix for Python 3.10. (#74628)

* Another unit test fix for Python 3.10.
* Add missing __init__.py file.
pull/74631/head
Matt Clay 5 years ago committed by GitHub
parent d4413dac08
commit bcb64054ed
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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…
Cancel
Save