Le Tue, Oct 25, 2011 at 02:35:24PM -0400, Barry Warsaw a écrit : > In Ubuntu, I've just merged 0.21.1-2 to Precise. Most of our deltas can be > dropped because they're now in Debian (yay! and thanks for that). Our > remaining delta enables the test suite and adds skips for the SSLv23 tests > which can't pass on Debian/Ubuntu. > > Attached are our debian/rules file and our d/p/skip_sslv2_tests.patch > > Cheers, > -Barry
> Description: When SSLv2 is disabled via openssl configuration, as it is in > Debian and Ubuntu, SSLv23 will use SSLv3/TLSv1 client hello format, thus > enabling connection to SSLv3/TLSv1 servers. The expected failure to connect > embodied in this test will not happen. See Python issue 13218 for additional > detail. > Author: Barry Warsaw <ba...@ubuntu.com> > Bug-Python: http://bugs.python.org/issue13218 > Forwarded: not-needed > > --- a/tests/test_ssl.py > +++ b/tests/test_ssl.py > @@ -387,6 +387,12 @@ > finally: > self.stop_server(pid) > > + @unittest.skip( Dear Barry, I just realised that this patch does not work with python 2.6. Do you know an alternative ? for version in 2.6 2.7; \ do python$version setup.py test || exit 1; \ done running test running egg_info writing M2Crypto.egg-info/PKG-INFO writing top-level names to M2Crypto.egg-info/top_level.txt writing dependency_links to M2Crypto.egg-info/dependency_links.txt reading manifest file 'M2Crypto.egg-info/SOURCES.txt' writing manifest file 'M2Crypto.egg-info/SOURCES.txt' running build_ext copying build/lib.linux-x86_64-2.6/M2Crypto/__m2crypto.so -> M2Crypto Traceback (most recent call last): File "setup.py", line 167, in <module> cmdclass = {'build_ext': _M2CryptoBuildExt} File "/usr/lib/python2.6/distutils/core.py", line 152, in setup dist.run_commands() File "/usr/lib/python2.6/distutils/dist.py", line 975, in run_commands self.run_command(cmd) File "/usr/lib/python2.6/distutils/dist.py", line 995, in run_command cmd_obj.run() File "/usr/lib/python2.6/dist-packages/setuptools/command/test.py", line 137, in run self.with_project_on_sys_path(self.run_tests) File "/usr/lib/python2.6/dist-packages/setuptools/command/test.py", line 117, in with_project_on_sys_path func() File "/usr/lib/python2.6/dist-packages/setuptools/command/test.py", line 146, in run_tests testLoader = loader_class() File "/usr/lib/python2.6/unittest.py", line 816, in __init__ self.parseArgs(argv) File "/usr/lib/python2.6/unittest.py", line 843, in parseArgs self.createTests() File "/usr/lib/python2.6/unittest.py", line 849, in createTests self.module) File "/usr/lib/python2.6/unittest.py", line 613, in loadTestsFromNames suites = [self.loadTestsFromName(name, module) for name in names] File "/usr/lib/python2.6/unittest.py", line 598, in loadTestsFromName test = obj() File "/«PKGBUILDDIR»/tests/alltests.py", line 52, in suite for module in map(my_import, modules_to_test): File "/«PKGBUILDDIR»/tests/alltests.py", line 13, in my_import mod = __import__(name) File "/«PKGBUILDDIR»/tests/test_bio_ssl.py", line 14, in <module> from test_ssl import srv_host, srv_port File "/«PKGBUILDDIR»/tests/test_ssl.py", line 271, in <module> class MiscSSLClientTestCase(BaseSSLClientTestCase): File "/«PKGBUILDDIR»/tests/test_ssl.py", line 390, in MiscSSLClientTestCase @unittest.skip( AttributeError: 'module' object has no attribute 'skip' make: *** [build/python-m2crypto] Error 1 dpkg-buildpackage: error: debian/rules build gave error exit status 2 ──────────────────────────────────────────────────────────────────────────────── Build finished at 20121019-1430 Have a nice day, -- Charles Plessy Tsurumi, Kanagawa, Japan -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org