#9964: Fix failure of test_dis under -OO.
This commit is contained in:
parent
f93390a61e
commit
ebbf63b5b2
@ -220,14 +220,13 @@ Number of locals: 1
|
|||||||
Stack size: 4
|
Stack size: 4
|
||||||
Flags: OPTIMIZED, NEWLOCALS, NOFREE
|
Flags: OPTIMIZED, NEWLOCALS, NOFREE
|
||||||
Constants:
|
Constants:
|
||||||
0: 'Formatted details of methods, functions, or code.'
|
0: %r
|
||||||
1: '__func__'
|
1: '__func__'
|
||||||
2: '__code__'
|
2: '__code__'
|
||||||
3: '<code_info>'
|
3: '<code_info>'
|
||||||
4: 'co_code'
|
4: 'co_code'
|
||||||
5: "don't know how to disassemble %s objects"
|
5: "don't know how to disassemble %%s objects"
|
||||||
6: None
|
%sNames:
|
||||||
Names:
|
|
||||||
0: hasattr
|
0: hasattr
|
||||||
1: __func__
|
1: __func__
|
||||||
2: __code__
|
2: __code__
|
||||||
@ -239,7 +238,8 @@ Names:
|
|||||||
8: type
|
8: type
|
||||||
9: __name__
|
9: __name__
|
||||||
Variable names:
|
Variable names:
|
||||||
0: x"""
|
0: x""" % (('Formatted details of methods, functions, or code.', ' 6: None\n')
|
||||||
|
if sys.flags.optimize < 2 else (None, ''))
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def tricky(x, y, z=True, *args, c, d, e=[], **kwds):
|
def tricky(x, y, z=True, *args, c, d, e=[], **kwds):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user