summaryrefslogtreecommitdiffstats
path: root/Misc
diff options
context:
space:
mode:
authorZackery Spytz <zspytz@gmail.com>2019-08-25 09:44:09 (GMT)
committerSerhiy Storchaka <storchaka@gmail.com>2019-08-25 09:44:09 (GMT)
commitce6a070414ed1e1374d1e6212bfbff61b6d5d755 (patch)
tree55f9d0c54b98ad3c95e78a235668f6dbc314087b /Misc
parent8371799e300475c8f9f967e900816218d3500e5d (diff)
downloadcpython-ce6a070414ed1e1374d1e6212bfbff61b6d5d755.zip
cpython-ce6a070414ed1e1374d1e6212bfbff61b6d5d755.tar.gz
cpython-ce6a070414ed1e1374d1e6212bfbff61b6d5d755.tar.bz2
bpo-34880: Add the LOAD_ASSERTION_ERROR opcode. (GH-15073)
Fix assert statement misbehavior if AssertionError is shadowed.
Diffstat (limited to 'Misc')
-rw-r--r--Misc/NEWS.d/next/Core and Builtins/2019-08-01-10-45-51.bpo-34880.u_x_CG.rst3
1 files changed, 3 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/Core and Builtins/2019-08-01-10-45-51.bpo-34880.u_x_CG.rst b/Misc/NEWS.d/next/Core and Builtins/2019-08-01-10-45-51.bpo-34880.u_x_CG.rst
new file mode 100644
index 0000000..31c42cb
--- /dev/null
+++ b/Misc/NEWS.d/next/Core and Builtins/2019-08-01-10-45-51.bpo-34880.u_x_CG.rst
@@ -0,0 +1,3 @@
+The :keyword:`assert` statement now works properly if the
+:exc:`AssertionError` exception is being shadowed.
+Patch by Zackery Spytz.