]> git.ipfire.org Git - thirdparty/tornado.git/commitdiff
Add a pypy-full test configuration.
authorBen Darnell <ben@bendarnell.com>
Mon, 18 Jun 2012 07:30:11 +0000 (00:30 -0700)
committerBen Darnell <ben@bendarnell.com>
Mon, 18 Jun 2012 07:30:11 +0000 (00:30 -0700)
Pypy compatibility has improved to the point that we can run twisted_test
under it (with one small issue that we can work around).

tornado/test/twisted_test.py
tox.ini

index 7862c87fff9b188519ade0fceaad55e71dbf89e5..78542a7a42bf89c27aef7c1d59714d44340f7579 100644 (file)
@@ -261,7 +261,7 @@ class ReactorReaderWriterTest(ReactorTestCase):
         self.shouldWrite = True
 
         def checkReadInput(fd):
-            self.assertEquals(fd.read(), 'x')
+            self.assertEquals(fd.read(1), 'x')
             self._reactor.stop()
 
         def writeOnce(fd):
diff --git a/tox.ini b/tox.ini
index 27189a48eb7770d07c8576fc06d6cb03e73754c2..6f841e4c31999e08abc209b9901118e1cafac084 100644 (file)
--- a/tox.ini
+++ b/tox.ini
@@ -67,9 +67,15 @@ deps =
      twisted>=11.1.0
 commands = python -m tornado.test.runtests --httpclient=tornado.curl_httpclient.CurlAsyncHTTPClient {posargs:}
 
-# No pypy-full yet: pycurl doesn't build with pypy, and installing
-# twisted under pypy takes a *very* long time.  MySQL-python builds with
-# pypy, but doesn't work.
+[testenv:pypy-full]
+# This configuration works with pypy 1.9.  pycurl installs ok but
+# curl_httpclient doesn't work.  Also note that travis-ci does not yet
+# have support for building C extensions with pypy, so we don't try to
+# run this configuration there.
+basepython = pypy
+deps =
+     MySQL-python
+     twisted>=12.1.0
 
 # In python 3, opening files in text mode uses a system-dependent encoding by
 # default.  Run the tests with "C" (ascii) and "utf-8" locales to ensure