33
33
# Imported from contextlib2's test_contextlib2.py
34
# Copyright: Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008,
35
# 2009, 2010, 2011 Python Software Foundation
37
# PYTHON SOFTWARE FOUNDATION LICENSE VERSION 2
38
# --------------------------------------------
40
# 1. This LICENSE AGREEMENT is between the Python Software Foundation
41
# ("PSF"), and the Individual or Organization ("Licensee") accessing and
42
# otherwise using this software ("Python") in source or binary form and
43
# its associated documentation.
45
# 2. Subject to the terms and conditions of this License Agreement, PSF hereby
46
# grants Licensee a nonexclusive, royalty-free, world-wide license to reproduce,
47
# analyze, test, perform and/or display publicly, prepare derivative works,
48
# distribute, and otherwise use Python alone or in any derivative version,
49
# provided, however, that PSF's License Agreement and PSF's notice of copyright,
50
# i.e., "Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010,
51
# 2011 Python Software Foundation; All Rights Reserved" are retained in Python
52
# alone or in any derivative version prepared by Licensee.
54
# 3. In the event Licensee prepares a derivative work that is based on
55
# or incorporates Python or any part thereof, and wants to make
56
# the derivative work available to others as provided herein, then
57
# Licensee hereby agrees to include in any such work a brief summary of
58
# the changes made to Python.
60
# 4. PSF is making Python available to Licensee on an "AS IS"
61
# basis. PSF MAKES NO REPRESENTATIONS OR WARRANTIES, EXPRESS OR
62
# IMPLIED. BY WAY OF EXAMPLE, BUT NOT LIMITATION, PSF MAKES NO AND
63
# DISCLAIMS ANY REPRESENTATION OR WARRANTY OF MERCHANTABILITY OR FITNESS
64
# FOR ANY PARTICULAR PURPOSE OR THAT THE USE OF PYTHON WILL NOT
65
# INFRINGE ANY THIRD PARTY RIGHTS.
67
# 5. PSF SHALL NOT BE LIABLE TO LICENSEE OR ANY OTHER USERS OF PYTHON
68
# FOR ANY INCIDENTAL, SPECIAL, OR CONSEQUENTIAL DAMAGES OR LOSS AS
69
# A RESULT OF MODIFYING, DISTRIBUTING, OR OTHERWISE USING PYTHON,
70
# OR ANY DERIVATIVE THEREOF, EVEN IF ADVISED OF THE POSSIBILITY THEREOF.
72
# 6. This License Agreement will automatically terminate upon a material
73
# breach of its terms and conditions.
75
# 7. Nothing in this License Agreement shall be deemed to create any
76
# relationship of agency, partnership, or joint venture between PSF and
77
# Licensee. This License Agreement does not grant permission to use PSF
78
# trademarks or trade name in a trademark sense to endorse or promote
79
# products or services of Licensee, or any third party.
81
# 8. By copying, installing or otherwise using Python, Licensee
82
# agrees to be bound by the terms and conditions of this License
36
86
class TestExitStack(tests.TestCase):