depot/third_party/nixpkgs/pkgs/development/python-modules/jaconv/use-pytest.patch
Default email f34ce41345 Project import generated by Copybara.
GitOrigin-RevId: b73c2221a46c13557b1b3be9c2070cc42cf01eb3
2024-07-27 08:49:29 +02:00

34 lines
1 KiB
Diff
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

diff --git a/test_jaconv.py b/test_jaconv.py
index 7e0a169..aaf180d 100644
--- a/test_jaconv.py
+++ b/test_jaconv.py
@@ -1,11 +1,8 @@
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
-from nose.tools import assert_equal, nottest
import jaconv
from functools import partial
-assert_equal.__self__.maxDiff = None
-
HIRAGANA = ('ぁあぃいぅうぇえぉおかがきぎくぐけげこごさざしじすずせぜそぞた',
'だちぢっつづてでとどなにぬねのはばぱひびぴふぶぷへべぺほぼぽま',
'みむめもゃやゅゆょよらりるれろわをんーゎゐゑゕゖゔゝゞ・「」。、')
@@ -25,13 +22,15 @@ FULL_ASCII = ('
FULL_DIGIT = ''
-@nottest
+def assert_equal(x, y):
+ assert x == y
+
+
def _compare(mathod, lhs, rhs):
for i in range(len(lhs)):
assert_equal(mathod(lhs[i]), rhs[i])
-@nottest
def _concat(*iterables):
result = ''
for iterable in iterables: