This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: Lib/test/test_unicode_file.py contains dead code
Type: Stage:
Components: Tests Versions: Python 3.2
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: brett.cannon Nosy List: brett.cannon, scoder, vstinner
Priority: normal Keywords:

Created on 2010-11-02 16:09 by scoder, last changed 2022-04-11 14:57 by admin. This issue is now closed.

Messages (2)
msg120236 - (view) Author: Stefan Behnel (scoder) * (Python committer) Date: 2010-11-02 16:09
Lib/test/test_unicode_file.py contains dead code:

    def _test_equivalent(self, filename1, filename2):
        remove_if_exists(filename1)
        self.assertTrue(not os.path.exists(filename2))
        f = file(filename1, "w")
        f.close()
        try:
            self._do_equivalent(filename1, filename2)
        finally:
            os.unlink(filename1)

Note how this refers to the now-gone "file()". The method is never used in the test code. Similarly, the "_do_equivalent()" method that it calls appears otherwise unused.
msg120248 - (view) Author: Brett Cannon (brett.cannon) * (Python committer) Date: 2010-11-02 19:28
Committed in r86125
History
Date User Action Args
2022-04-11 14:57:08adminsetgithub: 54503
2010-11-02 19:28:54brett.cannonsetstatus: open -> closed

nosy: + brett.cannon
messages: + msg120248

assignee: brett.cannon
resolution: fixed
2010-11-02 17:21:28pitrousetnosy: + vstinner
2010-11-02 16:09:46scodercreate