diff options
Diffstat (limited to 'AppPkg/Applications/Python/Python-2.7.2/Lib/test/warning_tests.py')
-rw-r--r-- | AppPkg/Applications/Python/Python-2.7.2/Lib/test/warning_tests.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/AppPkg/Applications/Python/Python-2.7.2/Lib/test/warning_tests.py b/AppPkg/Applications/Python/Python-2.7.2/Lib/test/warning_tests.py new file mode 100644 index 0000000000..aeee3d1d26 --- /dev/null +++ b/AppPkg/Applications/Python/Python-2.7.2/Lib/test/warning_tests.py @@ -0,0 +1,9 @@ +# Helper module for testing the skipmodules argument of warnings.warn()
+
+import warnings
+
+def outer(message, stacklevel=1):
+ inner(message, stacklevel)
+
+def inner(message, stacklevel=1):
+ warnings.warn(message, stacklevel=stacklevel)
|