David Wolever <[EMAIL PROTECTED]> added the comment: Ah, yes -- that may be the fault of the confusingly named 'check_both'. The "both" means "both when the module in question exists and when it does not". If you've got a better name, please change it! Take a look at the method and you'll see how it works.
The problem is that testing this is a little tricky -- you've either got to give it files that you know exist, create files, or work some magic. I took the work some magic route, and replaced the "exists" method which fix_import imports from os (that way the tests can check the list of files which are being checked). See the test_files_checked method for that. __________________________________ Tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue2446> __________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com