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 |
1 | hawking 08/01/31 15:30:34 |
2 | |
3 | Added: paramiko-1.7.2-tests_cleanup.patch |
4 | Log: |
5 | Version bump. Use distutils_src_unpack. Added patch to fix the tests. Run tests with --verbose because it takes quite a bit of time. |
6 | (Portage version: 2.1.4) |
7 | |
8 | Revision Changes Path |
9 | 1.1 dev-python/paramiko/files/paramiko-1.7.2-tests_cleanup.patch |
10 | |
11 | 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 |
12 | 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 |
13 | |
14 | Index: paramiko-1.7.2-tests_cleanup.patch |
15 | =================================================================== |
16 | diff -ur -x '*.pyc' -x '*.log' paramiko-1.7.2/test.py paramiko-1.7.2-fixed/test.py |
17 | --- paramiko-1.7.2/test.py 2007-02-13 04:52:19.000000000 +0200 |
18 | +++ paramiko-1.7.2-fixed/test.py 2008-01-31 16:34:04.000000000 +0200 |
19 | @@ -140,6 +140,13 @@ |
20 | filter = '|'.join(args) |
21 | suite = filter_suite_by_re(suite, filter) |
22 | runner.run(suite) |
23 | + if options.use_sftp: |
24 | + # Final cleanup |
25 | + from test_sftp import get_sftp, get_tc |
26 | + sftp = get_sftp() |
27 | + tc = get_tc() |
28 | + sftp.close() |
29 | + tc.close() |
30 | |
31 | |
32 | if __name__ == '__main__': |
33 | diff -ur -x '*.pyc' -x '*.log' paramiko-1.7.2/tests/test_sftp.py paramiko-1.7.2-fixed/tests/test_sftp.py |
34 | --- paramiko-1.7.2/tests/test_sftp.py 2007-02-13 05:01:32.000000000 +0200 |
35 | +++ paramiko-1.7.2-fixed/tests/test_sftp.py 2008-01-31 16:32:52.000000000 +0200 |
36 | @@ -75,6 +75,9 @@ |
37 | global sftp |
38 | return sftp |
39 | |
40 | +def get_tc(): |
41 | + global tc |
42 | + return tc |
43 | |
44 | class SFTPTest (unittest.TestCase): |
45 | |
46 | |
47 | |
48 | |
49 | -- |
50 | gentoo-commits@l.g.o mailing list |