Skip to content

Commit d5aaa0e

Browse files
authored
Merge pull request nats-io#33 from charliestrawn/loose-pin-tornado
Pin tornado version to less than 5 in requirements.
2 parents 1b30527 + 5d0a9bc commit d5aaa0e

File tree

4 files changed

+4
-13
lines changed

4 files changed

+4
-13
lines changed

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
tornado>=4.2
1+
tornado>=4.2,<5.0

script/test.sh

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
export PYTHONPATH=$(pwd)
44

55
pip install --upgrade pip
6-
pip install unittest2
76
pip install -r requirements.txt
87

98
python tests/test.py

tests/client_test.py

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,5 @@
11
import sys
2-
3-
if sys.version_info >= (2, 7):
4-
import unittest
5-
else:
6-
import unittest2 as unittest
2+
import unittest
73

84
import tornado.httpclient
95
import tornado.concurrent
@@ -254,7 +250,7 @@ def test_parse_info(self):
254250
self.assertIn("host", info_keys)
255251
self.assertIn("port", info_keys)
256252
self.assertIn("auth_required", info_keys)
257-
self.assertIn("ssl_required", info_keys)
253+
self.assertIn("tls_required", info_keys)
258254
self.assertIn("max_payload", info_keys)
259255

260256
@tornado.testing.gen_test(timeout=5)

tests/protocol_test.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,5 @@
11
import sys
2-
3-
if sys.version_info >= (2, 7):
4-
import unittest
5-
else:
6-
import unittest2 as unittest
2+
import unittest
73

84
import tornado.testing
95
import tornado.gen

0 commit comments

Comments
 (0)