Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(26)

Unified Diff: Lib/test/test_kqueue.py

Issue 10639: reindent.py converts newlines to platform default
Patch Set: Created 8 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Lib/test/test_itertools.py ('k') | Lib/test/test_locale.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
--- a/Lib/test/test_kqueue.py Tue Jul 26 09:37:46 2011 +0300
+++ b/Lib/test/test_kqueue.py Mon Jul 25 09:47:18 2011 -0400
@@ -1,12 +1,11 @@
"""
Tests for kqueue wrapper.
"""
+import socket
import errno
-import os
+import time
import select
-import socket
import sys
-import time
import unittest
from test import support
@@ -24,10 +23,7 @@
def test_create_event(self):
from operator import lt, le, gt, ge
-
- fd = os.open(os.devnull, os.O_WRONLY)
- self.addCleanup(os.close, fd)
-
+ fd = sys.stderr.fileno()
ev = select.kevent(fd)
other = select.kevent(1000)
self.assertEqual(ev.ident, fd)
« no previous file with comments | « Lib/test/test_itertools.py ('k') | Lib/test/test_locale.py » ('j') | no next file with comments »

RSS Feeds Recent Issues | This issue
This is Rietveld 894c83f36cb7+