Skip to content

Commit

Permalink
Move coro_unittest.py into coro/test for use by other tests
Browse files Browse the repository at this point in the history
Fixes #65
  • Loading branch information
markpeek committed Mar 20, 2015
1 parent 6c2e3e0 commit 6d113a2
Show file tree
Hide file tree
Showing 24 changed files with 23 additions and 23 deletions.
Empty file added coro/test/__init__.py
Empty file.
File renamed without changes.
2 changes: 1 addition & 1 deletion test/test_accept_many.py
Expand Up @@ -7,7 +7,7 @@
import unittest

import coro
import coro_unittest
from coro.test import coro_unittest

do_sleeps = False

Expand Down
2 changes: 1 addition & 1 deletion test/test_aio.py
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion test/test_asn1_python.py
@@ -1,7 +1,7 @@
# -*- 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
Expand Down
2 changes: 1 addition & 1 deletion test/test_condition_variable.py
Expand Up @@ -27,8 +27,8 @@
"""

import coro
import coro_unittest
import unittest
from coro.test import coro_unittest

class Test(unittest.TestCase):

Expand Down
2 changes: 1 addition & 1 deletion test/test_ecdsa.py
Expand Up @@ -4,7 +4,7 @@
import unittest

from coro.ssl.openssl import ecdsa
import coro_unittest
from coro.test import coro_unittest

test_key = (
'30820113020101042027a4909da59e97e1854a6d5ea26575b953d72da4cf285849ff9acce0d2156c'
Expand Down
2 changes: 1 addition & 1 deletion test/test_event_queue.py
Expand Up @@ -23,7 +23,7 @@
import unittest

import coro
import coro_unittest
from coro.test import coro_unittest

class Test(unittest.TestCase):

Expand Down
2 changes: 1 addition & 1 deletion test/test_in_parallel.py
Expand Up @@ -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):
Expand Down
2 changes: 1 addition & 1 deletion test/test_interrupt.py
Expand Up @@ -21,7 +21,7 @@
"""Unittests for interrupting coroutines."""

import coro
import coro_unittest
from coro.test import coro_unittest
import unittest

class TestException(Exception):
Expand Down
2 changes: 1 addition & 1 deletion test/test_isemaphore.py
Expand Up @@ -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):

Expand Down
2 changes: 1 addition & 1 deletion test/test_lio.py
Expand Up @@ -25,7 +25,7 @@
"""

import coro
import coro_unittest
from coro.test import coro_unittest
import operator
import os
import tempfile
Expand Down
2 changes: 1 addition & 1 deletion test/test_local.py
Expand Up @@ -23,7 +23,7 @@
import unittest

import coro
import coro_unittest
from coro.test import coro_unittest

class Test(unittest.TestCase):

Expand Down
2 changes: 1 addition & 1 deletion test/test_mutex.py
Expand Up @@ -21,7 +21,7 @@
"""Unittests for mutex."""

import coro
import coro_unittest
from coro.test import coro_unittest
import unittest

class Test(unittest.TestCase):
Expand Down
2 changes: 1 addition & 1 deletion test/test_notify_of_close.py
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion test/test_poller.py
Expand Up @@ -22,7 +22,7 @@

import coro
# import coro_process
import coro_unittest
from coro.test import coro_unittest
import os
import unittest

Expand Down
2 changes: 1 addition & 1 deletion test/test_profile.py
Expand Up @@ -28,7 +28,7 @@
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):
Expand Down
2 changes: 1 addition & 1 deletion test/test_readv.py
Expand Up @@ -25,7 +25,7 @@
import unittest

import coro
import coro_unittest
from coro.test import coro_unittest

do_sleeps = False

Expand Down
2 changes: 1 addition & 1 deletion test/test_rw_lock.py
Expand Up @@ -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):

Expand Down
2 changes: 1 addition & 1 deletion test/test_semaphore.py
Expand Up @@ -21,8 +21,8 @@
"""Unittests for semaphore."""

import coro
import coro_unittest
import unittest
from coro.test import coro_unittest

class Test(unittest.TestCase):

Expand Down
4 changes: 2 additions & 2 deletions test/test_signal_handler.py
@@ -1,11 +1,11 @@
# -*- 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

Expand Down
2 changes: 1 addition & 1 deletion test/test_socket.py
Expand Up @@ -25,7 +25,7 @@
import unittest

import coro
import coro_unittest
from coro.test import coro_unittest

class TestServer:

Expand Down
2 changes: 1 addition & 1 deletion test/test_with_timeout.py
Expand Up @@ -7,7 +7,7 @@
import os

import coro
import coro_unittest
from coro.test import coro_unittest


class TestWithTimeout (unittest.TestCase):
Expand Down
2 changes: 1 addition & 1 deletion test/test_writev.py
Expand Up @@ -25,7 +25,7 @@
import unittest

import coro
import coro_unittest
from coro.test import coro_unittest

current_buffer = ''
finished = None
Expand Down

0 comments on commit 6d113a2

Please sign in to comment.