mirror of
https://gitlab.com/buildroot.org/buildroot.git
synced 2026-08-18 21:33:39 -09:00
Importing urllib3 already allows us to check that for example zlib can be loaded at runtime. For good measure, also create the PoolManager object mentioned in the user guide ([1]), and check that we can normalize a URL like it is done in urllib3's 'test/test_util.py'. [1]: https://urllib3.readthedocs.io/en/stable/user-guide.html Signed-off-by: Raphaël Mélotte <raphael.melotte@mind.be> Signed-off-by: Julien Olivain <ju.o@free.fr>
13 lines
351 B
Python
13 lines
351 B
Python
from tests.package.test_python import TestPythonPackageBase
|
|
|
|
|
|
class TestPythonPy3Urllib3(TestPythonPackageBase):
|
|
__test__ = True
|
|
config = TestPythonPackageBase.config + \
|
|
"""
|
|
BR2_PACKAGE_PYTHON3=y
|
|
BR2_PACKAGE_PYTHON_URLLIB3=y
|
|
"""
|
|
sample_scripts = ["tests/package/sample_python_urllib3.py"]
|
|
timeout = 20
|