summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2009-03-25 21:42:51 (GMT)
committerBenjamin Peterson <benjamin@python.org>2009-03-25 21:42:51 (GMT)
commit2f6f7436aa16df56b60e584f5396ffe7c608a2e1 (patch)
treeeef072b33ab313d1d2b1f06d61387aba7d91c464 /Lib
parenta8adceb431bd34cec6fe0c1e3aa55dc0e681de06 (diff)
downloadcpython-2f6f7436aa16df56b60e584f5396ffe7c608a2e1.zip
cpython-2f6f7436aa16df56b60e584f5396ffe7c608a2e1.tar.gz
cpython-2f6f7436aa16df56b60e584f5396ffe7c608a2e1.tar.bz2
this can be slightly less ugly
Diffstat (limited to 'Lib')
-rw-r--r--Lib/test/test_support.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_support.py b/Lib/test/test_support.py
index df3dce6..73fa8ba 100644
--- a/Lib/test/test_support.py
+++ b/Lib/test/test_support.py
@@ -123,7 +123,7 @@ def requires(resource, msg=None):
possibility of False being returned occurs when regrtest.py is executing."""
# see if the caller's module is __main__ - if so, treat as if
# the resource was set
- if sys._getframe().f_back.f_globals.get("__name__") == "__main__":
+ if sys._getframe(1).f_globals.get("__name__") == "__main__":
return
if not is_resource_enabled(resource):
if msg is None: