Issue 256 in pyftpdlib: Test failures with Python 3.1

4 перегляди
Перейти до першого непрочитаного повідомлення

pyft...@googlecode.com

не прочитано,
28 квіт. 2013 р., 05:32:0728.04.13
Кому: pyftpdli...@googlegroups.com
Status: New
Owner: ----
Labels: Type-Defect Priority-Medium Component-Library

New issue 256 by Arfrever...@gmail.com: Test failures with Python 3.1
http://code.google.com/p/pyftpdlib/issues/detail?id=256

Some change between pyftpdlib-1.0.1 and pyftpdlib-1.1.0 has caused some
errors in test suite with Python 3.1.
In pyftpdlib-1.2.0, there are 28 errors in test_contrib.py and 18 errors in
test_ftpd.py with Python 3.1.

The attached patch seems to fix these problems.

Attachments:
pyftpdlib-basestring.patch 790 bytes

--
You received this message because this project is configured to send all
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings

pyft...@googlecode.com

не прочитано,
28 квіт. 2013 р., 05:34:1728.04.13
Кому: pyftpdli...@googlegroups.com

Comment #1 on issue 256 by Arfrever...@gmail.com: Test failures with Python
3.1
http://code.google.com/p/pyftpdlib/issues/detail?id=256

Example errors:

======================================================================
ERROR: test_common_methods (__main__.TestDummyAuthorizer)
----------------------------------------------------------------------
Traceback (most recent call last):
File "test/test_ftpd.py", line 308, in assertRaisesRegex
callable_obj(*args, **kwargs)
File "/tmp/pyftpdlib-1.2.0/pyftpdlib/authorizers.py", line 130, in
add_user
raise ValueError('no such directory: %r' % homedir)
ValueError: no such directory: '?:\\'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "test/test_ftpd.py", line 585, in test_common_methods
auth.add_user, USER, PASSWD, '?:\\')
File "test/test_ftpd.py", line 312, in assertRaisesRegex
if isinstance(expected_regexp, basestring):
NameError: global name 'basestring' is not defined

======================================================================
ERROR: test_override_perm_interface (__main__.TestDummyAuthorizer)
----------------------------------------------------------------------
Traceback (most recent call last):
File "test/test_ftpd.py", line 308, in assertRaisesRegex
callable_obj(*args, **kwargs)
File "/tmp/pyftpdlib-1.2.0/pyftpdlib/authorizers.py", line 168, in
override_perm
raise ValueError('no such directory: %r' % directory)
ValueError: no such directory: '?:\\'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "test/test_ftpd.py", line 621, in test_override_perm_interface
auth.override_perm, USER, '?:\\', 'elr')
File "test/test_ftpd.py", line 312, in assertRaisesRegex
if isinstance(expected_regexp, basestring):
NameError: global name 'basestring' is not defined

======================================================================
ERROR: test_anon_auth (__main__.TestFtpAuthentication)
----------------------------------------------------------------------
Traceback (most recent call last):
File "test/test_ftpd.py", line 308, in assertRaisesRegex
callable_obj(*args, **kwargs)
File "/usr/lib64/python3.1/ftplib.py", line 380, in login
if resp[0] == '3': resp = self.sendcmd('PASS ' + passwd)
File "/usr/lib64/python3.1/ftplib.py", line 246, in sendcmd
return self.getresp()
File "/usr/lib64/python3.1/ftplib.py", line 220, in getresp
raise error_perm(resp)
ftplib.error_perm: 530 Authentication failed.

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "test/test_ftpd.py", line 871, in test_anon_auth
self.assert_auth_failed('AnoNymouS', 'foo')
File "test/test_ftpd.py", line 862, in assert_auth_failed
self.client.login, user, passwd)
File "test/test_ftpd.py", line 312, in assertRaisesRegex
if isinstance(expected_regexp, basestring):
NameError: global name 'basestring' is not defined

======================================================================

pyft...@googlecode.com

не прочитано,
11 квіт. 2014 р., 17:31:4811.04.14
Кому: pyftpdli...@googlegroups.com
Updates:
Status: CantReproduce

Comment #2 on issue 256 by g.rodola: Test failures with Python 3.1
http://code.google.com/p/pyftpdlib/issues/detail?id=256

I'm going to close this out as by now as I expect it to be outdated, plus I
doesn't really make sense to target Python 3.1 anymore.
Відповісти всім
Відповісти автору
Переслати
0 нових повідомлень