File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -32,7 +32,7 @@ class TestFileCharsetNormalizer(unittest.TestCase):
32
32
}
33
33
34
34
def test_file_input (self ):
35
- for path_name in glob ('.. /data/*.srt' ) + glob ('. ./data/*.txt' ):
35
+ for path_name in glob ('./data/*.srt' ) + glob ('./data/*.txt' ):
36
36
37
37
with self .subTest ('test_file_input <{}>' .format (path_name )):
38
38
Original file line number Diff line number Diff line change 7
7
class TestProbeCoherence (unittest .TestCase ):
8
8
def test_obvious_coherence_gap (self ):
9
9
10
- should_be_most_coherent = CharsetNormalizerMatches .from_path ('.. /data/sample.1.ar.srt' ).best ().first ().coherence
10
+ should_be_most_coherent = CharsetNormalizerMatches .from_path ('./data/sample.1.ar.srt' ).best ().first ().coherence
11
11
12
- with open ('.. /data/sample.1.ar.srt' , 'r' , encoding = 'mac_cyrillic' ) as fp :
12
+ with open ('./data/sample.1.ar.srt' , 'r' , encoding = 'mac_cyrillic' ) as fp :
13
13
r_ = ProbeCoherence (Counter (fp .read ())).ratio
14
14
15
- with open ('.. /data/sample.1.ar.srt' , 'r' , encoding = 'cp1251' ) as fp :
15
+ with open ('./data/sample.1.ar.srt' , 'r' , encoding = 'cp1251' ) as fp :
16
16
t_ = ProbeCoherence (Counter (fp .read ())).ratio
17
17
18
18
self .assertLess (
You can’t perform that action at this time.
0 commit comments