Ticket #4522: 0003-Fix-test-for-_listOpenFDs.patch

File 0003-Fix-test-for-_listOpenFDs.patch, 1.2 KB (added by Carlos Valiente, 12 years ago)

Generated using Git from branch 'svn/faster-close-fds-4522'

  • twisted/internet/test/test_process.py

    From ea594ceb6795eb0bf0ddb57a752162d8df76d1cb Mon Sep 17 00:00:00 2001
    From: Carlos Valiente <carlos.valiente@ecmwf.int>
    Date: Tue, 29 Jun 2010 10:20:27 +0100
    Subject: [PATCH 3/5] Fix test for _listOpenFDs()
    
    ---
     twisted/internet/test/test_process.py |    4 ++--
     1 files changed, 2 insertions(+), 2 deletions(-)
    
    diff --git a/twisted/internet/test/test_process.py b/twisted/internet/test/test_process.py
    index 4808555..6bd59a4 100644
    a b class ProcessTestsBuilder(ProcessTestsBuilderBase): 
    485485        'os.listdir()').
    486486        """
    487487        here = FilePath(__file__)
    488         top = here.parent().parent().parent()
     488        top = here.parent().parent().parent().parent()
    489489        source = (
    490490            "import sys",
    491491            "sys.path.insert(0, '%s')" % (top.path,),
    class ProcessTestsBuilder(ProcessTestsBuilderBase): 
    496496        reactor = self.buildReactor()
    497497
    498498        def processFinished(output):
    499             self.assertEquals('(0, 1, 2, 3)', output)
     499            self.assertEquals('[0, 1, 2, 3]', output)
    500500
    501501        def shutdown(result):
    502502            reactor.stop()