Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d1b1c88 commit 48269eaCopy full SHA for 48269ea
2 files changed
Lib/test/test_calendar.py
@@ -619,6 +619,14 @@ def test_itermonthdays2(self):
619
self.assertEqual(days[0][1], firstweekday)
620
self.assertEqual(days[-1][1], (firstweekday - 1) % 7)
621
622
+ def test_iterweekdays(self):
623
+ week0 = list(range(7))
624
+ for firstweekday in range(7):
625
+ cal = calendar.Calendar(firstweekday)
626
+ week = list(cal.iterweekdays())
627
+ expected = week0[firstweekday:] + week0[:firstweekday]
628
+ self.assertEqual(week, expected)
629
+
630
631
class MonthCalendarTestCase(unittest.TestCase):
632
def setUp(self):
Misc/ACKS
@@ -1886,6 +1886,7 @@ Jacob Walls
1886
Kevin Walzer
1887
Rodrigo Steinmuller Wanderley
1888
Dingyuan Wang
1889
+Jiahua Wang
1890
Ke Wang
1891
Liang-Bo Wang
1892
Greg Ward
0 commit comments