1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-25 00:51:21 +00:00
freebsd-ports/ftp/py-pyftpdlib/files/patch-test__test_ftpd.py
Li-Wen Hsu 74ca516d44 - Tweak USE_PYTHON to -2.7 to match upstream compatibility
- Switch from distutils to easy_install (update pkg_plist to suit)
- Add OptionsNG for SENDFILE and OPENSSL support
- Add test: target to run unit tests
- Patch: setup.py
  - Add zip_safe=False to install egg uncompressed
  - Add test_suite for running unit tests via setup.py
- Patch: test/test_*
  - add path hacks to test WRKSRC sources

PR:		ports/171682
Submitted by:	Kubilay Kocak <koobs.freebsd@gmail.com>
2012-09-22 14:04:11 +00:00

12 lines
280 B
Python

--- ./test/test_ftpd.py.orig 2012-01-26 05:16:27.000000000 +1100
+++ ./test/test_ftpd.py 2012-09-15 01:25:53.000000000 +1000
@@ -77,6 +77,8 @@
except ImportError:
sendfile = None
+#Path hacks
+sys.path.insert(0, os.path.abspath('..'))
from pyftpdlib import ftpserver