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
1c9d4417
Commit
1c9d4417
authored
Dec 11, 2013
by
Zachary Ware
Browse files
Options
Browse Files
Download
Plain Diff
Issue #19828: Merge with 3.3
parents
0879fb1b
5ff50d2f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
9 deletions
+10
-9
Lib/test/test_site.py
Lib/test/test_site.py
+8
-9
Misc/NEWS
Misc/NEWS
+2
-0
No files found.
Lib/test/test_site.py
View file @
1c9d4417
...
@@ -6,8 +6,7 @@ executing have not been removed.
...
@@ -6,8 +6,7 @@ executing have not been removed.
"""
"""
import
unittest
import
unittest
import
test.support
import
test.support
from
test.support
import
run_unittest
,
TESTFN
,
EnvironmentVarGuard
from
test.support
import
captured_stderr
,
TESTFN
,
EnvironmentVarGuard
from
test.support
import
captured_stderr
import
builtins
import
builtins
import
os
import
os
import
sys
import
sys
...
@@ -19,13 +18,13 @@ import subprocess
...
@@ -19,13 +18,13 @@ import subprocess
import
sysconfig
import
sysconfig
from
copy
import
copy
from
copy
import
copy
#
Need to make sure to not import 'site' if someone specified ``-S`` at the
#
These tests are not particularly useful if Python was invoked with -S.
#
command-line. Detect this by just making sure 'site' has not been import
ed
#
If you add tests that are useful under -S, this skip should be mov
ed
#
already
.
#
to the class level
.
if
"site"
in
sys
.
modules
:
if
sys
.
flags
.
no_site
:
import
site
raise
unittest
.
SkipTest
(
"Python was invoked with -S"
)
else
:
raise
unittest
.
SkipTest
(
"importation of site.py suppressed"
)
import
site
if
site
.
ENABLE_USER_SITE
and
not
os
.
path
.
isdir
(
site
.
USER_SITE
):
if
site
.
ENABLE_USER_SITE
and
not
os
.
path
.
isdir
(
site
.
USER_SITE
):
# need to add user site directory for tests
# need to add user site directory for tests
...
...
Misc/NEWS
View file @
1c9d4417
...
@@ -151,6 +151,8 @@ IDLE
...
@@ -151,6 +151,8 @@ IDLE
Tests
Tests
-----
-----
-
Issue
#
19828
:
Fixed
test_site
when
the
whole
suite
is
run
with
-
S
.
-
Issue
#
19928
:
Implemented
a
test
for
repr
()
of
cell
objects
.
-
Issue
#
19928
:
Implemented
a
test
for
repr
()
of
cell
objects
.
-
Issue
#
19535
:
Fixed
test_docxmlrpc
,
test_functools
,
test_inspect
,
and
-
Issue
#
19535
:
Fixed
test_docxmlrpc
,
test_functools
,
test_inspect
,
and
...
...
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