mirror of
https://github.com/meshtastic/python.git
synced 2026-01-19 05:07:58 -05:00
Fix test_fuzz_fromStr for floats
This commit is contained in:
@@ -649,7 +649,11 @@ def test_fuzz_fromStr(valstr):
|
||||
int(valstr)
|
||||
assert isinstance(result, int)
|
||||
except ValueError:
|
||||
assert isinstance(result, str)
|
||||
try:
|
||||
float(valstr)
|
||||
assert isinstance(result, float)
|
||||
except ValueError:
|
||||
assert isinstance(result, str)
|
||||
|
||||
def test_shorthex():
|
||||
"""Test the shortest hex string representations"""
|
||||
|
||||
Reference in New Issue
Block a user