test: Multiple improvements to test.py and removal of utils.py
Multiple improvements to test.py
script, namely:
- General code simplifications.
- Use
subprocess.run()
instead ofsubprocess.Popen()
. - Use
ast.literal_eval()
instead ofeval()
, which is less safe. -
Remove Python2 fallback when importing!1675 (merged)queue
package.
Moreover, the file utils.py
contains three functions, but only the function get_list_from_file()
is currently used. Therefore, move the that function to the script test.py
, where it is used.
Edited by Eduardo Almeida