Commit e3bc9d1a authored by Denis Bilenko's avatar Denis Bilenko

test_socketserver.py: use unittest instead of greentest

parent efe67106
# Test suite for SocketServer.py # Test suite for SocketServer.py
# converted to greentest (Denis) # converted to unittest (Denis)
from gevent import monkey from gevent import monkey
monkey.patch_all() monkey.patch_all()
from greentest import test_support from greentest import test_support
from greentest.test_support import (verbose, verify, TESTFN, TestSkipped, from greentest.test_support import (verbose, verify, TESTFN, TestSkipped,
reap_children) reap_children)
test_support.requires('network') test_support.requires('network')
from SocketServer import * from SocketServer import *
...@@ -16,7 +16,7 @@ import time ...@@ -16,7 +16,7 @@ import time
import threading import threading
import sys import sys
import os import os
import greentest import unittest
NREQ = 3 NREQ = 3
DELAY = 0.05 DELAY = 0.05
...@@ -209,7 +209,7 @@ def testall(): ...@@ -209,7 +209,7 @@ def testall():
# client address so this cannot work: # client address so this cannot work:
##testloop(socket.AF_UNIX, dgramservers, MyDatagramHandler, testdgram) ##testloop(socket.AF_UNIX, dgramservers, MyDatagramHandler, testdgram)
class Test(greentest.TestCase): class Test(unittest.TestCase):
def tearDown(self): def tearDown(self):
sloppy_cleanup() sloppy_cleanup()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment