~cjwatson/storm/py3-reraise-fix

« back to all changes in this revision

Viewing changes to tests/wsgi.py

  • Committer: Colin Watson
  • Date: 2019-06-07 22:13:06 UTC
  • mfrom: (506.1.1 six-moves)
  • Revision ID: cjwatson@canonical.com-20190607221306-gebpih23izzkq342
Import from six.moves where appropriate. [r=simpoir]

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
from __future__ import print_function
2
2
 
3
 
import Queue
4
3
from unittest import TestCase
5
4
import threading
6
5
import time
7
6
 
 
7
from six.moves import queue
 
8
 
8
9
from storm.wsgi import make_app
9
10
 
10
11
class TestMakeApp(TestCase):
67
68
        # with two threads in a request at once, each only sees their own
68
69
        # timeline.
69
70
        app, find_timeline = make_app(self.stub_app)
70
 
        errors = Queue.Queue()
 
71
        errors = queue.Queue()
71
72
        sync = threading.Condition()
72
73
        waiting = []
73
74
        def check_timeline():