mirror of
https://github.com/python/cpython.git
synced 2025-08-30 21:48:47 +00:00
bpo-27169: The __debug__ constant is now optimized out at compile time. (#4880)
This fixes also bpo-22091.
This commit is contained in:
parent
297fd876aa
commit
3325a6780c
4 changed files with 26 additions and 38 deletions
|
@ -35,6 +35,7 @@ class TestSpecifics(unittest.TestCase):
|
|||
import builtins
|
||||
prev = builtins.__debug__
|
||||
setattr(builtins, '__debug__', 'sure')
|
||||
self.assertEqual(__debug__, prev)
|
||||
setattr(builtins, '__debug__', prev)
|
||||
|
||||
def test_argument_handling(self):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue