mirror of
https://gitlab.com/buildroot.org/buildroot.git
synced 2026-09-29 13:31:43 -09:00
package/python-tzlocal: new package
Signed-off-by: Marcus Hoffmann <buildroot@bubu1.eu> Signed-off-by: Julien Olivain <ju.o@free.fr>
This commit is contained in:
committed by
Julien Olivain
parent
cf4f2f858d
commit
6ca1ee306a
5
support/testing/tests/package/sample_python_tzlocal.py
Normal file
5
support/testing/tests/package/sample_python_tzlocal.py
Normal file
@@ -0,0 +1,5 @@
|
||||
from tzlocal import get_localzone
|
||||
from zoneinfo import ZoneInfo
|
||||
|
||||
tz = get_localzone()
|
||||
assert tz == ZoneInfo(key='posix/Europe/Berlin')
|
||||
14
support/testing/tests/package/test_python_tzlocal.py
Normal file
14
support/testing/tests/package/test_python_tzlocal.py
Normal file
@@ -0,0 +1,14 @@
|
||||
from tests.package.test_python import TestPythonPackageBase
|
||||
|
||||
|
||||
class TestPythonPy3TZLocal(TestPythonPackageBase):
|
||||
__test__ = True
|
||||
config = TestPythonPackageBase.config + \
|
||||
"""
|
||||
BR2_TARGET_TZ_INFO=y
|
||||
BR2_TARGET_LOCALTIME="Europe/Berlin"
|
||||
BR2_PACKAGE_PYTHON3=y
|
||||
BR2_PACKAGE_PYTHON_TZLOCAL=y
|
||||
"""
|
||||
sample_scripts = ["tests/package/sample_python_tzlocal.py"]
|
||||
timeout = 10
|
||||
Reference in New Issue
Block a user