Skip newline errors in Windows

This commit is contained in:
clemado1 committed 2020-09-01 23:34:15 +09:00
1 parent c250efab96
commit b0e55e36a0
1 file changed
+5
+5
View File
@@ -817,10 +817,12 @@ class CommandLineTestCase(unittest.TestCase):
self.assertIn(b'January', stdout)
self.assertIn(b'Mo Tu We Th Fr Sa Su', stdout)
@unittest.skipIf(sys.platform == 'win32', 'TODO: RUSTPYTHON Windows')
def test_output_year(self):
stdout = self.run_ok('2004')
self.assertEqual(stdout, conv(result_2004_text))
@unittest.skipIf(sys.platform == 'win32', 'TODO: RUSTPYTHON Windows')
def test_output_month(self):
stdout = self.run_ok('2004', '1')
self.assertEqual(stdout, conv(result_2004_01_text))
@@ -858,6 +860,7 @@ class CommandLineTestCase(unittest.TestCase):
stdout = self.run_ok('--width', '3', '2004')
self.assertIn(b'Mon Tue Wed Thu Fri Sat Sun', stdout)
@unittest.skipIf(sys.platform == 'win32', 'TODO: RUSTPYTHON Windows')
def test_option_lines(self):
self.assertFailure('-l')
self.assertFailure('--lines')
@@ -872,6 +875,7 @@ class CommandLineTestCase(unittest.TestCase):
stdout = self.run_ok('--spacing', '8', '2004')
self.assertIn(b'Su Mo', stdout)
@unittest.skipIf(sys.platform == 'win32', 'TODO: RUSTPYTHON Windows')
def test_option_months(self):
self.assertFailure('-m')
self.assertFailure('--month')
@@ -879,6 +883,7 @@ class CommandLineTestCase(unittest.TestCase):
stdout = self.run_ok('--months', '1', '2004')
self.assertIn(conv('\nMo Tu We Th Fr Sa Su\n'), stdout)
@unittest.skipIf(sys.platform == 'win32', 'TODO: RUSTPYTHON Windows')
def test_option_type(self):
self.assertFailure('-t')
self.assertFailure('--type')