Commits

Ralf Schmitt committed 4674cb6

make test__queue.py compatible with py.test

py.test wanted to run the test_get_interrupt and test_put_interrupt
functions, so rename then.

  • Participants
  • Parent commits 3866baf

Comments (0)

Files changed (1)

greentest/test__queue.py

         q.join()
 
 
-def test_get_interrupt(queue_type):
+def make_get_interrupt(queue_type):
 
     class TestGetInterrupt(GenericGetTestCase):
 
 
 
 for queue_type in [queue.Queue, queue.JoinableQueue, queue.LifoQueue, queue.PriorityQueue, queue.Channel]:
-    klass = test_get_interrupt(queue_type)
+    klass = make_get_interrupt(queue_type)
     globals()[klass.__name__] = klass
 del klass, queue_type
 
 
-def test_put_interrupt(queue):
+def make_put_interrupt(queue):
 
     class TestPutInterrupt(GenericGetTestCase):
 
 
 
 for obj in [queue.Queue(1), queue.JoinableQueue(1), queue.LifoQueue(1), queue.PriorityQueue(1), queue.Channel()]:
-    klass = test_put_interrupt(obj)
+    klass = make_put_interrupt(obj)
     globals()[klass.__name__] = klass
 del klass, obj