mirror of
https://gitlab.com/buildroot.org/buildroot.git
synced 2026-09-28 21:11:41 -09:00
package/python-humanfriendly: new package
Signed-off-by: Yann E. MORIN <yann.morin@orange.com> Cc: Romain Naour <romain.naour@smile.fr> Cc: James Hilliard <james.hilliard1@gmail.com> Cc: Thomas Petazzoni <thomas.petazzoni@bootlin.com> Cc: Yegor Yefremov <yegorslists@googlemail.com> [Julien: - add DEVELOPERS entry - fix test class name ] Signed-off-by: Julien Olivain <ju.o@free.fr>
This commit is contained in:
committed by
Julien Olivain
parent
49c1e1181f
commit
e190962f3e
@@ -0,0 +1,6 @@
|
||||
import humanfriendly as hf
|
||||
|
||||
|
||||
h_size = "16MiB"
|
||||
b_size = hf.parse_size(h_size)
|
||||
assert b_size == 16*1024*1024
|
||||
12
support/testing/tests/package/test_python_humanfriendly.py
Normal file
12
support/testing/tests/package/test_python_humanfriendly.py
Normal file
@@ -0,0 +1,12 @@
|
||||
from tests.package.test_python import TestPythonPackageBase
|
||||
|
||||
|
||||
class TestPythonPy3HumanFriendly(TestPythonPackageBase):
|
||||
__test__ = True
|
||||
config = TestPythonPackageBase.config + \
|
||||
"""
|
||||
BR2_PACKAGE_PYTHON3=y
|
||||
BR2_PACKAGE_PYTHON3_CURSES=y
|
||||
BR2_PACKAGE_PYTHON_HUMANFRIENDLY=y
|
||||
"""
|
||||
sample_scripts = ["tests/package/sample_python_humanfriendly.py"]
|
||||
Reference in New Issue
Block a user