mirror of
https://github.com/meshtastic/python.git
synced 2026-09-17 07:55:37 -04:00
Fix test_fuzz_fromStr for floats
This commit is contained in:
1 parent
5d6dfb877b
commit
4fdbcb9679
1 file changed
+5
-1
@@ -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