Commit 6d113a2d authored by Mark Peek's avatar Mark Peek

Move coro_unittest.py into coro/test for use by other tests

Fixes #65
parent 6c2e3e06
......@@ -7,7 +7,7 @@ import sys
import unittest
import coro
import coro_unittest
from coro.test import coro_unittest
do_sleeps = False
......
......@@ -24,7 +24,7 @@
from coro import oserrors
import coro
import coro_unittest
from coro.test import coro_unittest
import os
import unittest
import random
......
# -*- Mode: Python -*-
import unittest
import coro_unittest
from coro.test import coro_unittest
from coro.asn1.python import *
from coro.asn1.ber import decode as D
......
......@@ -27,8 +27,8 @@ XXX: This needs additional tests for:
"""
import coro
import coro_unittest
import unittest
from coro.test import coro_unittest
class Test(unittest.TestCase):
......
......@@ -4,7 +4,7 @@ import hashlib
import unittest
from coro.ssl.openssl import ecdsa
import coro_unittest
from coro.test import coro_unittest
test_key = (
'30820113020101042027a4909da59e97e1854a6d5ea26575b953d72da4cf285849ff9acce0d2156c'
......
......@@ -23,7 +23,7 @@
import unittest
import coro
import coro_unittest
from coro.test import coro_unittest
class Test(unittest.TestCase):
......
......@@ -21,7 +21,7 @@
"""Unittests for coro.in_parallel."""
import coro
import coro_unittest
from coro.test import coro_unittest
import unittest
class Test(unittest.TestCase):
......
......@@ -21,7 +21,7 @@
"""Unittests for interrupting coroutines."""
import coro
import coro_unittest
from coro.test import coro_unittest
import unittest
class TestException(Exception):
......
......@@ -21,8 +21,8 @@
"""Unittests for inverted semaphore."""
import coro
import coro_unittest
import unittest
from coro.test import coro_unittest
class Test(unittest.TestCase):
......
......@@ -25,7 +25,7 @@ XXX TODO:
"""
import coro
import coro_unittest
from coro.test import coro_unittest
import operator
import os
import tempfile
......
......@@ -23,7 +23,7 @@
import unittest
import coro
import coro_unittest
from coro.test import coro_unittest
class Test(unittest.TestCase):
......
......@@ -21,7 +21,7 @@
"""Unittests for mutex."""
import coro
import coro_unittest
from coro.test import coro_unittest
import unittest
class Test(unittest.TestCase):
......
......@@ -21,10 +21,10 @@
"""Unittests for the notify_of_close functionality."""
import coro
import coro_unittest
import os
import unittest
from coro import oserrors
from coro.test import coro_unittest
class ForceSend(coro.Interrupted):
pass
......
......@@ -22,7 +22,7 @@
import coro
# import coro_process
import coro_unittest
from coro.test import coro_unittest
import os
import unittest
......
......@@ -28,7 +28,7 @@ import unittest
import coro
import coro.profiler
import coro.print_profile
import coro_unittest
from coro.test import coro_unittest
# Sam's favorite profile function.
def tak1 (x, y, z):
......
......@@ -25,7 +25,7 @@ import sys
import unittest
import coro
import coro_unittest
from coro.test import coro_unittest
do_sleeps = False
......
......@@ -21,8 +21,8 @@
"""Unittests for read-write lock."""
import coro
import coro_unittest
import unittest
from coro.test import coro_unittest
class Test(unittest.TestCase):
......
......@@ -21,8 +21,8 @@
"""Unittests for semaphore."""
import coro
import coro_unittest
import unittest
from coro.test import coro_unittest
class Test(unittest.TestCase):
......
# -*- Mode: Python -*-
import coro
import coro_unittest
import unittest
from coro import signal_handler
import os
import signal
from coro import signal_handler
from coro.test import coro_unittest
signal_caught_flag = False
......
......@@ -25,7 +25,7 @@ import sys
import unittest
import coro
import coro_unittest
from coro.test import coro_unittest
class TestServer:
......
......@@ -7,7 +7,7 @@ import unittest
import os
import coro
import coro_unittest
from coro.test import coro_unittest
class TestWithTimeout (unittest.TestCase):
......
......@@ -25,7 +25,7 @@ import sys
import unittest
import coro
import coro_unittest
from coro.test import coro_unittest
current_buffer = ''
finished = None
......
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