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
1c371b25
Commit
1c371b25
authored
Sep 01, 2012
by
Petri Lehtinen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
#15802: Fix test logic in TestMaildir.test_create_tmp
parent
6fb8fb17
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
5 deletions
+8
-5
Lib/test/test_mailbox.py
Lib/test/test_mailbox.py
+5
-5
Misc/NEWS
Misc/NEWS
+3
-0
No files found.
Lib/test/test_mailbox.py
View file @
1c371b25
...
...
@@ -759,13 +759,13 @@ class TestMaildir(TestMailbox, unittest.TestCase):
self.assertIsNot(match, None, "
Invalid
file
name
:
'%s'" % tail)
groups = match.groups()
if previous_groups is not None:
self.assert
True(int(groups[0] >=
previous_groups[0]),
self.assert
GreaterEqual(int(groups[0]), int(
previous_groups[0]),
"
Non
-
monotonic
seconds
:
'%s'
before
'%s'" %
(previous_groups[0], groups[0]))
self.assertTrue(int(groups[1] >= previous_groups[1]) or
groups[0] != groups[1]
,
"
Non
-
monotonic
milliseconds
:
'%s'
before
'%s'" %
(previous_groups[1], groups[1]))
if int(groups[0]) == int(previous_groups[0]):
self.assertGreaterEqual(int(groups[1]), int(previous_groups[1])
,
"
Non
-
monotonic
milliseconds
:
'%s'
before
'%s'" %
(previous_groups[1], groups[1]))
self.assertEqual(int(groups[2]), pid,
"
Process
ID
mismatch
:
'%s'
should
be
'%s'" %
(groups[2], pid))
...
...
Misc/NEWS
View file @
1c371b25
...
...
@@ -457,6 +457,9 @@ Extension Modules
Tests
-----
- Issue #15802: Fix test logic in TestMaildir.test_create_tmp. Patch
by Serhiy Storchaka.
- Issue #15747: ZFS always returns EOPNOTSUPP when attempting to set the
UF_IMMUTABLE flag (via either chflags or lchflags); refactor affected
tests in test_posix.py to account for this.
...
...
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