mirror of
https://github.com/rspeer/wordfreq.git
synced 2024-12-23 09:21:37 +00:00
Merge pull request #70 from LuminosoInsight/pytest-fixes
Fixes to scripts that accidentally run during tests
This commit is contained in:
commit
832d8f2fdd
@ -1,2 +1,2 @@
|
||||
[pytest]
|
||||
addopts = --doctest-modules --doctest-glob=README.md
|
||||
addopts = --doctest-modules --doctest-glob=README.md --ignore=scripts
|
||||
|
@ -8,7 +8,7 @@ import wordfreq
|
||||
|
||||
N = 1000
|
||||
|
||||
|
||||
for lang in sorted(wordfreq.available_languages()):
|
||||
for word in wordfreq.top_n_list(lang, 1000):
|
||||
print('{}\t{}'.format(lang, word))
|
||||
if __name__ == '__main__':
|
||||
for lang in sorted(wordfreq.available_languages()):
|
||||
for word in wordfreq.top_n_list(lang, 1000):
|
||||
print('{}\t{}'.format(lang, word))
|
||||
|
Loading…
Reference in New Issue
Block a user