Skip to content

Commit b0e55e3

Browse files
committed
Skip newline errors in Windows
1 parent c250efa commit b0e55e3

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Lib/test/test_calendar.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -817,10 +817,12 @@ def test_output_current_year(self):
817817
self.assertIn(b'January', stdout)
818818
self.assertIn(b'Mo Tu We Th Fr Sa Su', stdout)
819819

820+
@unittest.skipIf(sys.platform == 'win32', 'TODO: RUSTPYTHON Windows')
820821
def test_output_year(self):
821822
stdout = self.run_ok('2004')
822823
self.assertEqual(stdout, conv(result_2004_text))
823824

825+
@unittest.skipIf(sys.platform == 'win32', 'TODO: RUSTPYTHON Windows')
824826
def test_output_month(self):
825827
stdout = self.run_ok('2004', '1')
826828
self.assertEqual(stdout, conv(result_2004_01_text))
@@ -858,6 +860,7 @@ def test_option_width(self):
858860
stdout = self.run_ok('--width', '3', '2004')
859861
self.assertIn(b'Mon Tue Wed Thu Fri Sat Sun', stdout)
860862

863+
@unittest.skipIf(sys.platform == 'win32', 'TODO: RUSTPYTHON Windows')
861864
def test_option_lines(self):
862865
self.assertFailure('-l')
863866
self.assertFailure('--lines')
@@ -872,13 +875,15 @@ def test_option_spacing(self):
872875
stdout = self.run_ok('--spacing', '8', '2004')
873876
self.assertIn(b'Su Mo', stdout)
874877

878+
@unittest.skipIf(sys.platform == 'win32', 'TODO: RUSTPYTHON Windows')
875879
def test_option_months(self):
876880
self.assertFailure('-m')
877881
self.assertFailure('--month')
878882
self.assertFailure('-m', 'spam')
879883
stdout = self.run_ok('--months', '1', '2004')
880884
self.assertIn(conv('\nMo Tu We Th Fr Sa Su\n'), stdout)
881885

886+
@unittest.skipIf(sys.platform == 'win32', 'TODO: RUSTPYTHON Windows')
882887
def test_option_type(self):
883888
self.assertFailure('-t')
884889
self.assertFailure('--type')

0 commit comments

Comments
 (0)