psychoone7 / pyftpdlib

Automatically exported from code.google.com/p/pyftpdlib
Other
0 stars 0 forks source link

test_ftpd.py: 'Kqueue' object has no attribute '_poller' #273

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Run test_ftpd.py on FreeBSD 9.1-R:

ERROR: test_ioloop_fileno (__main__.TestCornerCases)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "test_ftpd.py", line 3310, in test_ioloop_fileno
    fd = self.server.server.ioloop.fileno()
  File "build/bdist.freebsd-9.1-RELEASE-amd64/egg/pyftpdlib/ioloop.py", line 581, in fileno
    return self._poller.fileno()
AttributeError: 'Kqueue' object has no attribute '_poller'

pyftpdlib 1.2.0, FreeBSD 9.1-R, Python 2.7

Possible fix:
> diff ioloop.py.orig ioloop.py
581c581
<             return self._poller.fileno()

---
>             return self._kqueue.fileno()

Original issue reported on code.google.com by michaelr...@gmail.com on 5 Oct 2013 at 6:14

GoogleCodeExporter commented 9 years ago
Sorry for the big delay on this.
Committed in r1234.

Original comment by g.rodola on 6 Nov 2013 at 8:25

GoogleCodeExporter commented 9 years ago

Original comment by g.rodola on 8 Nov 2013 at 7:52