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
bb756780
Commit
bb756780
authored
May 30, 2012
by
R David Murray
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
#14796: fix failure of new calendar test on windows.
parent
949d8c98
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
Lib/test/test_calendar.py
Lib/test/test_calendar.py
+3
-2
No files found.
Lib/test/test_calendar.py
View file @
bb756780
...
@@ -353,8 +353,9 @@ class OutputTestCase(unittest.TestCase):
...
@@ -353,8 +353,9 @@ class OutputTestCase(unittest.TestCase):
def
test_yeardatescalendar
(
self
):
def
test_yeardatescalendar
(
self
):
def
shrink
(
cal
):
def
shrink
(
cal
):
return
[[[
' '
.
join
((
d
.
strftime
(
'%D'
)
return
[[[
' '
.
join
(
'{:02d}/{:02d}/{}'
.
format
(
for
d
in
z
))
for
z
in
y
]
for
y
in
x
]
for
x
in
cal
]
d
.
month
,
d
.
day
,
str
(
d
.
year
)[
-
2
:])
for
d
in
z
)
for
z
in
y
]
for
y
in
x
]
for
x
in
cal
]
self
.
assertEqual
(
self
.
assertEqual
(
shrink
(
calendar
.
Calendar
().
yeardatescalendar
(
2004
)),
shrink
(
calendar
.
Calendar
().
yeardatescalendar
(
2004
)),
result_2004_dates
result_2004_dates
...
...
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