cpython: aea58e1cae75 (original) (raw)

Mercurial > cpython

changeset 85624:aea58e1cae75

Issue #18904: test_os and test_socket use unittest.skipIf() to check if fcntl module is present (to record skipped tests) [#18904]

Victor Stinner victor.stinner@gmail.com
date Sun, 08 Sep 2013 14:14:38 +0200
parents 74dc664ad699
children 138e086e187d 6d6d68c068ad
files Lib/test/test_os.py Lib/test/test_socket.py
diffstat 2 files changed, 44 insertions(+), 42 deletions(-)[+] [-] Lib/test/test_os.py 37 Lib/test/test_socket.py 49

line wrap: on

line diff

--- a/Lib/test/test_os.py +++ b/Lib/test/test_os.py @@ -2312,28 +2312,29 @@ class FDInheritanceTests(unittest.TestCa os.set_inheritable(fd, True) self.assertEqual(os.get_inheritable(fd), True)

def test_open(self): fd = os.open(file, os.O_RDONLY)

--- a/Lib/test/test_socket.py +++ b/Lib/test/test_socket.py @@ -4808,30 +4808,31 @@ class InheritanceTest(unittest.TestCase) sock.set_inheritable(False) self.assertEqual(sock.get_inheritable(), False)

-

-

-

-

+

+

+

+

@unittest.skipUnless(hasattr(socket, "socketpair"),