Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Removed nearly all pylint complaints. Updated readme with info about using tox.
- Loading branch information
Showing
5 changed files
with
27 additions
and
17 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
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
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 |
---|---|---|
|
@@ -37,15 +37,15 @@ def testGoodMSList(self): | |
with open(misspelling_file) as msf: | ||
for unused_line in msf: | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
myint
Contributor
|
||
lines += 1 | ||
self.assertEqual(len(ms.dumpMisspellingList()), lines) | ||
self.assertEqual(len(ms.dump_misspelling_list()), lines) | ||
|
||
def testExampleSameAsDefault(self): | ||
dms = misspellings.Misspellings() | ||
ems = misspellings.Misspellings( | ||
misspelling_file=os.path.join(BASE_PATH, 'example_msl.txt')) | ||
# wc -l example_msl.txt | ||
default_msl = dms.dumpMisspellingList() | ||
example_msl = ems.dumpMisspellingList() | ||
default_msl = dms.dump_misspelling_list() | ||
example_msl = ems.dump_misspelling_list() | ||
for fn, msl in (('msl_ex', example_msl), ('msl_de', default_msl)): | ||
f = open(os.path.join(LOG_PATH, | ||
'testExampleSameAsDefault.%s.tmp' % fn), 'w') | ||
|
Typically in Python, the idiom is to use a single underscore as variable name to indicate that it isn't be used.