]> git.ipfire.org Git - thirdparty/tornado.git/commitdiff
Make ioloop test runnable on unix (chmod +x and add #! line), and remove
authorBen Darnell <bdarnell@beaker.local>
Thu, 25 Mar 2010 22:59:18 +0000 (15:59 -0700)
committerBen Darnell <bdarnell@beaker.local>
Thu, 25 Mar 2010 22:59:18 +0000 (15:59 -0700)
hard-coded PYTHONPATH manipulations.  Add a small readme for tests.

tornado/test/README [new file with mode: 0644]
tornado/test/test_ioloop.py [changed mode: 0644->0755]

diff --git a/tornado/test/README b/tornado/test/README
new file mode 100644 (file)
index 0000000..2d6195d
--- /dev/null
@@ -0,0 +1,4 @@
+Test coverage is almost non-existent, but it's a start.  Be sure to
+set PYTHONPATH apprioriately (generally to the root directory of your
+tornado checkout) when running tests to make sure you're getting the
+version of the tornado package that you expect.
\ No newline at end of file
old mode 100644 (file)
new mode 100755 (executable)
index 1dd56cc..2541fa8
@@ -1,11 +1,9 @@
-# So we can run this file standalone from the test directory
-import sys
-sys.path.insert(0, '..')
+#!/usr/bin/env python
 
 import unittest
 import time
 
-import ioloop
+from tornado import ioloop
 
 
 class TestIOLoop(unittest.TestCase):