It's a locale problem. This fixes most of the problems: diff --git a/debian/rules b/debian/rules index 9c04662..6130dc4 100755 --- a/debian/rules +++ b/debian/rules @@ -1,6 +1,8 @@ #!/usr/bin/make -f export PYBUILD_NAME=paramiko +export PYBUILD_VERBOSE=1 +export DH_VERBOSE=1 %: dh $@ --with python2,python3 --buildsystem=pybuild @@ -11,3 +13,12 @@ ifeq (,$(findstring nodocs, $(DEB_BUILD_OPTIONS))) endif dh_installdocs +override_dh_auto_test: + mkdir -p $(CURDIR)/tmp-locales + localedef -i /usr/share/i18n/locales/en_US -c -f UTF-8 \ + -A /usr/share/locale/locale.alias \ + $(CURDIR)/tmp-locales/en_US.UTF-8 + LOCPATH=$(CURDIR)/tmp-locales LC_ALL=en_US.UTF-8 \ + dh_auto_test -- \ + --system=custom \ + --test-args='{interpreter} $(CURDIR)/test.py --verbose'
Unfortunately, I still have one last test I'm tracking down in python3.5 (python2.7 passes now): ====================================================================== FAIL: test_L_handshake_timeout (tests.test_transport.TransportTest) ---------------------------------------------------------------------- Traceback (most recent call last): File "/<<PKGBUILDDIR>>/tests/test_transport.py", line 811, in test_L_handshake_timeout password='pygmalion') AssertionError: EOFError not raised by connect