python/mock-1.0.0/tests/testwith.py

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/python/mock-1.0.0/tests/testwith.py	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,16 @@
     1.4 +import sys
     1.5 +
     1.6 +if sys.version_info[:2] >= (2, 5):
     1.7 +    from tests._testwith import *
     1.8 +else:
     1.9 +    from tests.support import unittest2
    1.10 +
    1.11 +    class TestWith(unittest2.TestCase):
    1.12 +
    1.13 +        @unittest2.skip('tests using with statement skipped on Python 2.4')
    1.14 +        def testWith(self):
    1.15 +            pass
    1.16 +
    1.17 +
    1.18 +if __name__ == '__main__':
    1.19 +    unittest2.main()

mercurial