Revision: 1259
Author: g.rodola
Date: Fri Apr 11 19:17:13 2014 UTC
Log: lower INTERRUPTED_TRANSF_SIZE to try avoiding false positives +
provide alias for deprecate unittest method
http://code.google.com/p/pyftpdlib/source/detail?r=1259
Modified:
/trunk/test/test_ftpd.py
=======================================
--- /trunk/test/test_ftpd.py Fri Apr 11 19:12:29 2014 UTC
+++ /trunk/test/test_ftpd.py Fri Apr 11 19:17:13 2014 UTC
@@ -59,6 +59,9 @@
else:
import unittest
+if not hasattr(unittest.TestCase, "assertRaisesRegex"):
+ unittest.TestCase.assertRaisesRegex =
unittest.TestCase.assertRaisesRegexp
+
sendfile = None
if
os.name == 'posix':
try:
@@ -89,7 +92,7 @@
TESTFN_UNICODE_2 = TESTFN_UNICODE + '-2'
TIMEOUT = 2
BUFSIZE = 1024
-INTERRUPTED_TRANSF_SIZE = 196608
+INTERRUPTED_TRANSF_SIZE = 32768
def try_address(host, port=0, family=socket.AF_INET):