Gentoo Logo
Gentoo Spaceship




Note: Due to technical difficulties, the Archives are currently not up to date. GMANE provides an alternative service for most mailing lists.
c.f. bug 424647
List Archive: gentoo-commits
Navigation:
Lists: gentoo-commits: < Prev By Thread Next > < Prev By Date Next >
Headers:
To: gentoo-commits@g.o
From: "Ali Polatel (hawking)" <hawking@g.o>
Subject: gentoo-x86 commit in dev-python/paramiko/files: paramiko-1.7.2-tests_cleanup.patch
Date: Thu, 31 Jan 2008 15:30:34 +0000
hawking     08/01/31 15:30:34

  Added:                paramiko-1.7.2-tests_cleanup.patch
  Log:
  Version bump. Use distutils_src_unpack. Added patch to fix the tests. Run tests with --verbose because it takes quite a bit of time.
  (Portage version: 2.1.4)

Revision  Changes    Path
1.1                  dev-python/paramiko/files/paramiko-1.7.2-tests_cleanup.patch

file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-python/paramiko/files/paramiko-1.7.2-tests_cleanup.patch?rev=1.1&view=markup
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-python/paramiko/files/paramiko-1.7.2-tests_cleanup.patch?rev=1.1&content-type=text/plain

Index: paramiko-1.7.2-tests_cleanup.patch
===================================================================
diff -ur -x '*.pyc' -x '*.log' paramiko-1.7.2/test.py paramiko-1.7.2-fixed/test.py
--- paramiko-1.7.2/test.py	2007-02-13 04:52:19.000000000 +0200
+++ paramiko-1.7.2-fixed/test.py	2008-01-31 16:34:04.000000000 +0200
@@ -140,6 +140,13 @@
         filter = '|'.join(args)
         suite = filter_suite_by_re(suite, filter)
     runner.run(suite)
+    if options.use_sftp:
+        # Final cleanup
+        from test_sftp import get_sftp, get_tc
+        sftp = get_sftp()
+        tc = get_tc()
+        sftp.close()
+        tc.close()
 
 
 if __name__ == '__main__':
diff -ur -x '*.pyc' -x '*.log' paramiko-1.7.2/tests/test_sftp.py paramiko-1.7.2-fixed/tests/test_sftp.py
--- paramiko-1.7.2/tests/test_sftp.py	2007-02-13 05:01:32.000000000 +0200
+++ paramiko-1.7.2-fixed/tests/test_sftp.py	2008-01-31 16:32:52.000000000 +0200
@@ -75,6 +75,9 @@
     global sftp
     return sftp
 
+def get_tc():
+    global tc
+    return tc
 
 class SFTPTest (unittest.TestCase):
 



-- 
gentoo-commits@g.o mailing list


Navigation:
Lists: gentoo-commits: < Prev By Thread Next > < Prev By Date Next >
Previous by thread:
gentoo-x86 commit in dev-python/paramiko: ChangeLog paramiko-1.7.2.ebuild
Next by thread:
gentoo-x86 commit in media-libs/libmtp: ChangeLog metadata.xml libmtp-0.2.5-r1.ebuild libmtp-0.2.1.ebuild libmtp-0.1.5.ebuild libmtp-0.0.21.ebuild libmtp-0.1.3.ebuild libmtp-0.2.5.ebuild libmtp-0.2.0.ebuild
Previous by date:
gentoo-x86 commit in kde-base/kpdf: kpdf-3.5.8-r1.ebuild ChangeLog
Next by date:
gentoo-x86 commit in kde-base/kvoctrain: ChangeLog kvoctrain-3.5.8.ebuild


Updated Aug 09, 2011

Summary: Archive of the gentoo-commits mailing list.

Donate to support our development efforts.

Copyright 2001-2013 Gentoo Foundation, Inc. Questions, Comments? Contact us.