Ticket #4522: 0004-Skip-test_listOpenFDs-on-non-POSIX-platforms.patch

File 0004-Skip-test_listOpenFDs-on-non-POSIX-platforms.patch, 1017 bytes (added by Carlos Valiente, 12 years ago)

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

  • twisted/internet/test/test_process.py

    From 150cceb9ee2479d4de4b5211c06f12c7c45f15a3 Mon Sep 17 00:00:00 2001
    From: Carlos Valiente <carlos.valiente@ecmwf.int>
    Date: Tue, 29 Jun 2010 10:34:38 +0100
    Subject: [PATCH 4/5] Skip test_listOpenFDs on non-POSIX platforms.
    
    ---
     twisted/internet/test/test_process.py |    4 ++++
     1 files changed, 4 insertions(+), 0 deletions(-)
    
    diff --git a/twisted/internet/test/test_process.py b/twisted/internet/test/test_process.py
    index 6bd59a4..e203006 100644
    a b class ProcessTestsBuilder(ProcessTestsBuilderBase): 
    484484        (file descriptor 3 is also reported as open, because of the call to
    485485        'os.listdir()').
    486486        """
     487        from twisted.python.runtime import platformType
     488        if platformType == "posix":
     489            raise SkipTest("Test only applies to POSIX platforms")
     490
    487491        here = FilePath(__file__)
    488492        top = here.parent().parent().parent().parent()
    489493        source = (