Changeset 488:fe60c3e3ee4b

Show
Ignore:
Timestamp:
09/10/08 12:32:56 (4 months ago)
Author:
Brian Warner <warner@allmydata.com>
branch:
default
Message:

testversions.py: tolerate OpenSSL not being installed

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • ChangeLog

    r487 r488  
    55        a warning if it is likely that the tests would fail, to remind the 
    66        user to re-run with -r poll. 
     7        (Versions.test_required): oops, guard import of OpenSSL on having 
     8        crypto available, otherwise this test gets an error when OpenSSL 
     9        is not installed. 
    710 
    8112008-09-08  Brian Warner  <warner@lothar.com> 
  • foolscap/test/test__versions.py

    r487 r488  
    22from twisted.trial import unittest 
    33import time 
    4 import OpenSSL 
    54import twisted 
    65from twisted.internet import reactor 
     6from foolscap.test.common import crypto_available 
    77 
    88class Versions(unittest.TestCase): 
    99    def test_required(self): 
     10        if not crypto_available: 
     11            return 
     12        import OpenSSL 
    1013        ssl_ver = OpenSSL.__version__.split(".") 
    1114        tw_ver = twisted.__version__.split(".")