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
411a954f
Commit
411a954f
authored
Oct 23, 2000
by
Fred Drake
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added test for regression on SourceForge bug #117490.
parent
5ac5654b
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
30 additions
and
0 deletions
+30
-0
Lib/test/output/test_mailbox
Lib/test/output/test_mailbox
+2
-0
Lib/test/test_mailbox.py
Lib/test/test_mailbox.py
+28
-0
No files found.
Lib/test/output/test_mailbox
0 → 100644
View file @
411a954f
test_mailbox
newly created maildir contains 0 messages
Lib/test/test_mailbox.py
0 → 100644
View file @
411a954f
import
mailbox
import
os
import
test_support
# create a new maildir mailbox to work with:
curdir
=
os
.
path
.
join
(
test_support
.
TESTFN
,
"cur"
)
newdir
=
os
.
path
.
join
(
test_support
.
TESTFN
,
"new"
)
try
:
os
.
mkdir
(
test_support
.
TESTFN
)
os
.
mkdir
(
curdir
)
os
.
mkdir
(
newdir
)
# Test for regression on bug #117490:
# http://sourceforge.net/bugs/?func=detailbug&bug_id=117490&group_id=5470
# Make sure the boxes attribute actually gets set.
mbox
=
mailbox
.
Maildir
(
test_support
.
TESTFN
)
mbox
.
boxes
print
"newly created maildir contains"
,
len
(
mbox
.
boxes
),
"messages"
# XXX We still need more tests!
finally
:
try
:
os
.
rmdir
(
newdir
)
except
IOError
:
pass
try
:
os
.
rmdir
(
curdir
)
except
IOError
:
pass
try
:
os
.
rmdir
(
test_support
.
TESTFN
)
except
IOError
:
pass
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