summaryrefslogtreecommitdiff
path: root/Lib/test/test_sys.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/test/test_sys.py')
-rw-r--r--Lib/test/test_sys.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/Lib/test/test_sys.py b/Lib/test/test_sys.py
index b0688e1e60..db8d008208 100644
--- a/Lib/test/test_sys.py
+++ b/Lib/test/test_sys.py
@@ -1320,9 +1320,10 @@ class SizeofTest(unittest.TestCase):
# sys.floatinfo
check(sys.float_info, vsize('') + self.P * len(sys.float_info))
# frame
- import inspect
- x = inspect.currentframe()
- check(x, size('3Pi3c'))
+ def func():
+ return sys._getframe()
+ x = func()
+ check(x, size('3Pi3c8P2iciP'))
# function
def func(): pass
check(func, size('14Pi'))