Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
33e71e01
Commit
33e71e01
authored
May 22, 2019
by
Marcel Plch
Committed by
Petr Viktorin
May 22, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bpo-31862: Port binascii to PEP 489 multiphase initialization (GH-4108)
parent
77aa396b
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
118 additions
and
34 deletions
+118
-34
Lib/test/test_capi.py
Lib/test/test_capi.py
+13
-0
Misc/NEWS.d/next/Core and Builtins/2017-10-24-17-26-58.bpo-31862.5Gea8L.rst
...ore and Builtins/2017-10-24-17-26-58.bpo-31862.5Gea8L.rst
+2
-0
Modules/binascii.c
Modules/binascii.c
+103
-34
No files found.
Lib/test/test_capi.py
View file @
33e71e01
...
...
@@ -473,6 +473,19 @@ class SubinterpreterTest(unittest.TestCase):
self
.
assertNotEqual
(
pickle
.
load
(
f
),
id
(
sys
.
modules
))
self
.
assertNotEqual
(
pickle
.
load
(
f
),
id
(
builtins
))
def
test_mutate_exception
(
self
):
"""
Exceptions saved in global module state get shared between
individual module instances. This test checks whether or not
a change in one interpreter's module gets reflected into the
other ones.
"""
import
binascii
support
.
run_in_subinterp
(
"import binascii; binascii.Error.foobar = 'foobar'"
)
self
.
assertFalse
(
hasattr
(
binascii
.
Error
,
"foobar"
))
class
TestThreadState
(
unittest
.
TestCase
):
...
...
Misc/NEWS.d/next/Core and Builtins/2017-10-24-17-26-58.bpo-31862.5Gea8L.rst
0 → 100644
View file @
33e71e01
Port binascii to PEP 489 multiphase initialization.
Patch by Marcel Plch.
Modules/binascii.c
View file @
33e71e01
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment