File tree Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -378,6 +378,10 @@ def test_formatter():
378
378
assert f1 (u'모리안' ) == f2 (u'모리안' ) == u'모리안으로 모리안을'
379
379
380
380
381
+ def test_formatter_without_korean ():
382
+ assert tossi .format ('{0}' , u'Tossi' ) == u'Tossi'
383
+
384
+
381
385
def test_singleton_error ():
382
386
with pytest .raises (TypeError ):
383
387
class Fail (with_metaclass (SingletonParticleMeta , object )):
Original file line number Diff line number Diff line change @@ -71,15 +71,15 @@ def filter_only_significant(word):
71
71
x = len (word )
72
72
while x > 0 :
73
73
x -= 1
74
- l = word [x ]
74
+ c = word [x ]
75
75
# Skip a complete parenthesis.
76
- if l == u')' :
76
+ if c == u')' :
77
77
m = INSIGNIFICANT_PARENTHESIS_PATTERN .search (word [:x + 1 ])
78
78
if m is not None :
79
79
x = m .start ()
80
80
continue
81
81
# Skip unreadable characters such as punctuations.
82
- unicode_category = unicodedata .category (l )
82
+ unicode_category = unicodedata .category (c )
83
83
if not SIGNIFICANT_UNICODE_CATEGORY_PATTERN .match (unicode_category ):
84
84
continue
85
85
break
You can’t perform that action at this time.
0 commit comments