-
-
Notifications
You must be signed in to change notification settings - Fork 14.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #325847 from dotlambda/python3Packages.jaconv
python312Packages.jaconv: don't use nose
- Loading branch information
Showing
2 changed files
with
41 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
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 = '0123456789' | ||
|
||
|
||
-@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: |