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
7afa64e2
Commit
7afa64e2
authored
Oct 27, 2004
by
Hye-Shik Chang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add a comment explains why we should modify mtime here.
parent
1816d79b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
Lib/test/test_traceback.py
Lib/test/test_traceback.py
+4
-2
No files found.
Lib/test/test_traceback.py
View file @
7afa64e2
...
...
@@ -52,12 +52,14 @@ class TracebackCases(unittest.TestCase):
def test():
raise ValueError"""
# XXX Unclear why we're doing this next bit.
# if this test runs fast, test_bug737473.py will have same mtime
# even if it's rewrited and it'll not reloaded. so adjust mtime
# of original to past.
if
hasattr
(
os
,
'utime'
):
past
=
time
.
time
()
-
3
os
.
utime
(
testfile
,
(
past
,
past
))
else
:
time
.
sleep
(
3
)
# not to stay in same mtime.
time
.
sleep
(
3
)
if
'test_bug737473'
in
sys
.
modules
:
del
sys
.
modules
[
'test_bug737473'
]
...
...
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