http://hg.code.sf.net:8000/p/roundup/code/atom-log/tip/test/test_anypy.py Mercurial Repository: p/roundup/code: test/test_anypy.py history 2024-03-24T10:50:08-04:00 test: invoke test function in cmp_.py. http://hg.code.sf.net:8000/p/roundup/code/#changeset-ebb03b8cee4d48c65a16a9ba1620f9b9e7d376cb John Rouillard rouilj@ieee.org 2024-03-24T10:50:08-04:00 2024-03-24T10:50:08-04:00
changeset ebb03b8cee4d
branch
bookmark
tag
user John Rouillard <rouilj@ieee.org>
description test: invoke test function in cmp_.py.
files
fix: replace eval with ast.literal_eval; ruff linting http://hg.code.sf.net:8000/p/roundup/code/#changeset-c65e0a725c88b87d7b13ea939e89b3ff4cc04bd7 John Rouillard rouilj@ieee.org 2024-03-02T04:01:22-05:00 2024-03-02T04:01:22-05:00
changeset c65e0a725c88
branch
bookmark
tag
user John Rouillard <rouilj@ieee.org>
description fix: replace eval with ast.literal_eval; ruff linting

strings.py:

When reading csv export files, use the safer literal_eval to
evaluate the fields. Issue pointed out by ruff linter.

Other Cleanup:

sort imports

replace if, else, if, else with if, elif, else

use isinstance with tuples rather than 'isinstance() or
isinstance()'



test_anypy.py:

Added tests for tuples, and booleans. Also added exception handling
for malformed strings, booleans, tuples.
files
test for issue2551170 process python 2 long under python3 http://hg.code.sf.net:8000/p/roundup/code/#changeset-e4db9d0b85c7be1884dd066d912444f3e6816c51 John Rouillard rouilj@ieee.org 2021-11-16T23:34:37-05:00 2021-11-16T23:34:37-05:00
changeset e4db9d0b85c7
branch
bookmark
tag
user John Rouillard <rouilj@ieee.org>
description test for issue2551170 process python 2 long under python3
files