Am 08.01.2015 um 02:29 schrieb Aaron Meurer:
Testing for unused imports is possible (pyflakes does it), but I am -1 to
adding an automated test for it. Unused imports are clutter, and PRs
removing them are welcome,

Okay, working on these then.

> but they are not so bad that they need to be
always clean at every point in time.

Understood.

> Also there can be false positives,
because a function can be imported just so that it can be recursively
imported from that same module. At best, you have to ignore __init__.py
files.

That's the stuff that gets re-exported up to the sympy module itself, so that it is available to the SymPy user, right?

Question is: How do I test that I didn't inadvertently remove an import for that? I'm not going to see a test failure for that, I think.

--
You received this message because you are subscribed to the Google Groups 
"sympy" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sympy.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sympy/54AE4205.2050407%40durchholz.org.
For more options, visit https://groups.google.com/d/optout.

Reply via email to