Refactor Particle
tests to not use exec
and eval
#1460
Labels
plasmapy.particles
Related to the plasmapy.particles subpackage
refactoring ♻️
Improving an implementation without adding new functionality
testing
It's generally a best practice to avoid
exec
andeval
statements in Python code because of security risks, and also because it makes code more complicated. Some of the tests ofParticle
intest_particle_class.py
useexec
, and should be refactored to avoid usingexec
.The text was updated successfully, but these errors were encountered: