[New-bugs-announce] [issue17452] ftplib raises exception if ssl module is not available

Russell Kackley report at bugs.python.org
Mon Mar 18 07:19:28 CET 2013


New submission from Russell Kackley:

On a system with no ssl module the following test failure occurs:

======================================================================
ERROR: test_dir (test.test_ftplib.TestFTPClass)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/rkackley/Code/cpython/Lib/test/test_ftplib.py", line 598, in test_dir
    self.client.dir(lambda x: l.append(x))
  File "/home/rkackley/Code/cpython/Lib/ftplib.py", line 565, in dir
    self.retrlines(cmd, func)
  File "/home/rkackley/Code/cpython/Lib/ftplib.py", line 476, in retrlines
    if isinstance(conn, _SSLSocket):
TypeError: isinstance() arg 2 must be a type or tuple of types

----------
components: Library (Lib)
files: ftplib.diff
keywords: patch
messages: 184429
nosy: giampaolo.rodola, rkackley
priority: normal
severity: normal
status: open
title: ftplib raises exception if ssl module is not available
type: behavior
versions: Python 3.4
Added file: http://bugs.python.org/file29438/ftplib.diff

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue17452>
_______________________________________


More information about the New-bugs-announce mailing list