Gentoo Archives: gentoo-commits

From: "Ali Polatel (hawking)" <hawking@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in dev-python/paramiko/files: paramiko-1.7.2-tests_cleanup.patch
Date: Thu, 31 Jan 2008 15:30:48
Message-Id: E1JKbN4-0004yr-2H@stork.gentoo.org
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@l.g.o mailing list