Просмотр исходного кода

Python 3.2 is weird.

tags/v0.3.3
Ben Kurtovic 10 лет назад
Родитель
Сommit
c8485bf56b
1 измененных файлов: 2 добавлений и 2 удалений
  1. +2
    -2
      tests/test_string_mixin.py

+ 2
- 2
tests/test_string_mixin.py Просмотреть файл

@@ -376,7 +376,7 @@ class TestStringMixIn(unittest.TestCase):
self.assertEqual(actual, str25.rsplit(None, 3))
actual = [" this is a sentence with", "", "whitespace", ""]
self.assertEqual(actual, str25.rsplit(" ", 3))
if py3k:
if py3k and not py32:
actual = [" this is a", "sentence", "with", "whitespace"]
self.assertEqual(actual, str25.rsplit(maxsplit=3))

@@ -394,7 +394,7 @@ class TestStringMixIn(unittest.TestCase):
self.assertEqual(actual, str25.split(None, 3))
actual = ["", "", "", "this is a sentence with whitespace "]
self.assertEqual(actual, str25.split(" ", 3))
if py3k:
if py3k and not py32:
actual = ["this", "is", "a", "sentence with whitespace "]
self.assertEqual(actual, str25.split(maxsplit=3))



Загрузка…
Отмена
Сохранить