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
179a3dbc
Commit
179a3dbc
authored
Oct 12, 2013
by
Christian Heimes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Issue #19205: add debugging output for failing test on Snow Leopard
parent
cbf6e95d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
7 deletions
+12
-7
Lib/test/test_site.py
Lib/test/test_site.py
+12
-7
No files found.
Lib/test/test_site.py
View file @
179a3dbc
...
...
@@ -425,19 +425,24 @@ class StartupImportTests(unittest.TestCase):
def
test_startup_imports
(
self
):
# This tests checks which modules are loaded by Python when it
# initially starts upon startup.
args
=
[
sys
.
executable
,
'-I'
,
'-c'
,
'import sys; print(set(sys.modules))'
]
stdout
=
subprocess
.
check_output
(
args
)
modules
=
eval
(
stdout
.
decode
(
'utf-8'
))
popen
=
subprocess
.
Popen
([
sys
.
executable
,
'-I'
,
'-v'
,
'-c'
,
'import sys; print(set(sys.modules))'
],
stdout
=
subprocess
.
PIPE
,
stderr
=
subprocess
.
PIPE
)
stdout
,
stderr
=
popen
.
communicate
()
stdout
=
stdout
.
decode
(
'utf-8'
)
stderr
=
stderr
.
decode
(
'utf-8'
)
modules
=
eval
(
stdout
)
self
.
assertIn
(
'site'
,
modules
)
# http://bugs.python.org/issue19205
re_mods
=
{
're'
,
'_sre'
,
'sre_compile'
,
'sre_constants'
,
'sre_parse'
}
self
.
assertFalse
(
modules
.
intersection
(
re_mods
))
self
.
assertFalse
(
modules
.
intersection
(
re_mods
)
,
stderr
)
# http://bugs.python.org/issue9548
self
.
assertNotIn
(
'locale'
,
modules
)
self
.
assertNotIn
(
'locale'
,
modules
,
stderr
)
# http://bugs.python.org/issue19209
self
.
assertNotIn
(
'copyreg'
,
modules
)
self
.
assertNotIn
(
'copyreg'
,
modules
,
stderr
)
if
__name__
==
"__main__"
:
...
...
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