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
aaa5d1c5
Commit
aaa5d1c5
authored
Apr 19, 2013
by
Ezio Melotti
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
#17779: test_osx_env now works with unittest test discovery. Patch by Zachary Ware.
parent
bca1a262
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
5 deletions
+7
-5
Lib/test/test_osx_env.py
Lib/test/test_osx_env.py
+4
-5
Misc/NEWS
Misc/NEWS
+3
-0
No files found.
Lib/test/test_osx_env.py
View file @
aaa5d1c5
...
...
@@ -8,6 +8,9 @@ import sys
import
sysconfig
import
unittest
@
unittest
.
skipUnless
(
sys
.
platform
==
'darwin'
and
sysconfig
.
get_config_var
(
'WITH_NEXT_FRAMEWORK'
),
'unnecessary on this platform'
)
class
OSXEnvironmentVariableTestCase
(
unittest
.
TestCase
):
def
_check_sys
(
self
,
ev
,
cond
,
sv
,
val
=
sys
.
executable
+
'dummy'
):
with
EnvironmentVarGuard
()
as
evg
:
...
...
@@ -27,9 +30,5 @@ class OSXEnvironmentVariableTestCase(unittest.TestCase):
def
test_pythonexecutable_sets_sys_executable
(
self
):
self
.
_check_sys
(
'PYTHONEXECUTABLE'
,
'=='
,
'sys.executable'
)
def
test_main
():
if
sys
.
platform
==
'darwin'
and
sysconfig
.
get_config_var
(
'WITH_NEXT_FRAMEWORK'
):
run_unittest
(
OSXEnvironmentVariableTestCase
)
if
__name__
==
"__main__"
:
test_
main
()
unittest
.
main
()
Misc/NEWS
View file @
aaa5d1c5
...
...
@@ -120,6 +120,9 @@ Tests
-
Issue
#
12820
:
add
tests
for
the
xml
.
dom
.
minicompat
module
.
Patch
by
John
Chandler
and
Phil
Connell
.
-
Issue
#
17779
:
test_osx_env
now
works
with
unittest
test
discovery
.
Patch
by
Zachary
Ware
.
-
Issue
#
17766
:
test_iterlen
now
works
with
unittest
test
discovery
.
Patch
by
Zachary
Ware
.
...
...
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