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
ebbb14c1
Commit
ebbb14c1
authored
May 19, 2011
by
Tarek Ziade
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Issue #12120, Issue #12119: tests were missing a sys.dont_write_bytecode check
parent
2db2d3be
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
2 deletions
+7
-2
Lib/distutils/tests/test_build_py.py
Lib/distutils/tests/test_build_py.py
+2
-1
Lib/packaging/tests/test_command_build_py.py
Lib/packaging/tests/test_command_build_py.py
+2
-1
Misc/NEWS
Misc/NEWS
+3
-0
No files found.
Lib/distutils/tests/test_build_py.py
View file @
ebbb14c1
...
...
@@ -58,7 +58,8 @@ class BuildPyTestCase(support.TempdirManager,
pkgdest
=
os
.
path
.
join
(
destination
,
"pkg"
)
files
=
os
.
listdir
(
pkgdest
)
self
.
assertTrue
(
"__init__.py"
in
files
)
self
.
assertTrue
(
"__init__.pyc"
in
files
)
if
not
sys
.
dont_write_bytecode
:
self
.
assertTrue
(
"__init__.pyc"
in
files
)
self
.
assertTrue
(
"README.txt"
in
files
)
def
test_empty_package_dir
(
self
):
...
...
Lib/packaging/tests/test_command_build_py.py
View file @
ebbb14c1
...
...
@@ -61,7 +61,8 @@ class BuildPyTestCase(support.TempdirManager,
pkgdest
=
os
.
path
.
join
(
destination
,
"pkg"
)
files
=
os
.
listdir
(
pkgdest
)
self
.
assertIn
(
"__init__.py"
,
files
)
self
.
assertIn
(
"__init__.pyc"
,
files
)
if
not
sys
.
dont_write_bytecode
:
self
.
assertIn
(
"__init__.pyc"
,
files
)
self
.
assertIn
(
"README.txt"
,
files
)
def
test_empty_package_dir
(
self
):
...
...
Misc/NEWS
View file @
ebbb14c1
...
...
@@ -153,6 +153,9 @@ Core and Builtins
Library
-------
- Issue #12120, #12119: skip a test in packaging and distutils
if sys.dont_write_bytecode is set to True.
- Issue #12065: connect_ex() on an SSL socket now returns the original errno
when the socket'
s
timeout
expires
(
it
used
to
return
None
).
...
...
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