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
94b59bb1
Commit
94b59bb1
authored
May 18, 2007
by
Guido van Rossum
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use test_support.unlink() instead of os.unlink().
parent
8d9db047
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
4 deletions
+3
-4
Lib/test/test_shelve.py
Lib/test/test_shelve.py
+3
-4
No files found.
Lib/test/test_shelve.py
View file @
94b59bb1
import
os
import
unittest
import
shelve
import
glob
...
...
@@ -6,11 +5,11 @@ from test import test_support
class
TestCase
(
unittest
.
TestCase
):
fn
=
"shelftemp
"
+
os
.
extsep
+
"
db"
fn
=
"shelftemp
.
db"
def
tearDown
(
self
):
for
f
in
glob
.
glob
(
self
.
fn
+
"*"
):
os
.
unlink
(
f
)
test_support
.
unlink
(
f
)
def
test_ascii_file_shelf
(
self
):
s
=
shelve
.
open
(
self
.
fn
,
protocol
=
0
)
...
...
@@ -97,7 +96,7 @@ class TestShelveBase(mapping_tests.BasicTestMappingProtocol):
self
.
_db
=
[]
if
not
self
.
_in_mem
:
for
f
in
glob
.
glob
(
self
.
fn
+
"*"
):
os
.
unlink
(
f
)
test_support
.
unlink
(
f
)
class
TestAsciiFileShelve
(
TestShelveBase
):
_args
=
{
'protocol'
:
0
}
...
...
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