]> git.ipfire.org Git - thirdparty/tornado.git/commitdiff
don't check error code in test_set_close_exec 2038/head
authorMarc Schlaich <marc.schlaich@googlemail.com>
Mon, 8 May 2017 13:29:42 +0000 (15:29 +0200)
committerGitHub <noreply@github.com>
Mon, 8 May 2017 13:29:42 +0000 (15:29 +0200)
tornado/test/windows_test.py

index e5cb33813909def00d43621ffed025a8022be884..48faa5b5bc453446e1694b04aa3a03ee8dafac8f 100644 (file)
@@ -21,7 +21,5 @@ class WindowsTest(unittest.TestCase):
         r, w = os.pipe()
         self.addCleanup(functools.partial(os.close, r))
         self.addCleanup(functools.partial(os.close, w))
-        with self.assertRaises(WindowsError) as cm:
+        with self.assertRaises(WindowsError):
             set_close_exec(r)
-        ERROR_INVALID_HANDLE = 6
-        self.assertEqual(cm.exception.winerror, ERROR_INVALID_HANDLE)