testing-cabal / testtools

Testtools - tasteful testing for python
https://testtools.readthedocs.io/en/latest/
Other
94 stars 88 forks source link

Don't use eval() #276

Closed rossburton closed 4 years ago

rossburton commented 5 years ago

eval() has security implications so security scanners such as Bandit warn about the use of eval(). In the context of the test suite where eval() is used there are no security problems, but changing to ast.literal_eval is trivial so do it anyway.