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
2a86fb70
Commit
2a86fb70
authored
Jul 29, 2013
by
Nick Coghlan
Browse files
Options
Browse Files
Download
Plain Diff
Merge #15415 from 3.3 (again)
parents
f5aeea3d
be7405f9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
5 deletions
+7
-5
Lib/test/test_startfile.py
Lib/test/test_startfile.py
+7
-5
No files found.
Lib/test/test_startfile.py
View file @
2a86fb70
...
...
@@ -21,12 +21,14 @@ class TestCase(unittest.TestCase):
self
.
assertRaises
(
OSError
,
startfile
,
"nonexisting.vbs"
)
def
test_empty
(
self
):
# startfile is a little odd when it comes to handling absolute
# paths, so we briefly switch to the main test directory
# and use a relative path
with
support
.
change_cwd
(
support
.
TEST_HOME
):
empty
=
"empty.vbs"
# We need to make sure the child process starts in a directory
# we're not about to delete. If we're running under -j, that
# means the test harness provided directory isn't a safe option.
# See http://bugs.python.org/issue15526 for more details
with
support
.
change_cwd
(
path
.
dirname
(
sys
.
executable
)):
empty
=
path
.
join
(
path
.
dirname
(
__file__
),
"empty.vbs"
)
startfile
(
empty
)
startfile
(
empty
,
"open"
)
def
test_main
():
support
.
run_unittest
(
TestCase
)
...
...
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