Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 860039 Details for
Bug 904297
dev-python/pyspelling-2.8.2: fails tests
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
build.log
file_904297.txt (text/plain), 735.89 KB, created by
Sam James
on 2023-04-14 04:06:52 UTC
(
hide
)
Description:
build.log
Filename:
MIME Type:
Creator:
Sam James
Created:
2023-04-14 04:06:52 UTC
Size:
735.89 KB
patch
obsolete
> * Package: dev-python/pyspelling-2.8.2:0 > * Repository: gentoo > * Maintainer: lssndrbarbieri@gmail.com andrewammerlaan@gentoo.org,proxy-maint@gentoo.org,python@gentoo.org > * USE: arm64 elibc_glibc kernel_linux python_targets_python3_10 test userland_GNU > * FEATURES: network-sandbox preserve-libs sandbox test userpriv usersandbox > >>>> Unpacking source... >>>> Unpacking pyspelling-2.8.2.gh.tar.gz to /var/tmp/portage/dev-python/pyspelling-2.8.2/work >>>> Source unpacked in /var/tmp/portage/dev-python/pyspelling-2.8.2/work >>>> Preparing source in /var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2 ... > * Build system packages: > * dev-python/gpep517 : 13 > * dev-python/installer : 0.7.0 > * dev-python/hatchling : 1.14.0 > * dev-python/hatch-fancy-pypi-readme: 22.8.0 > * dev-python/hatch-vcs : 0.3.0 >>>> Source prepared. >>>> Configuring source in /var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2 ... >>>> Source configured. >>>> Compiling source in /var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2 ... > * python3_10: running distutils-r1_run_phase distutils-r1_python_compile > * Building the wheel for pyspelling-2.8.2 via hatchling.build >gpep517 build-wheel --backend hatchling.build --output-fd 3 --wheel-dir /var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2-python3_10/wheel >2023-04-13 06:38:54,027 gpep517 INFO Building wheel via backend hatchling.build >2023-04-13 06:38:54,136 gpep517 INFO The backend produced /var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2-python3_10/wheel/pyspelling-2.8.2-py3-none-any.whl > * Installing pyspelling-2.8.2-py3-none-any.whl to /var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2-python3_10/install >gpep517 install-wheel --destdir=/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2-python3_10/install --interpreter=/usr/bin/python3.10 --prefix=/usr --optimize=all /var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2-python3_10/wheel/pyspelling-2.8.2-py3-none-any.whl >2023-04-13 06:38:54,258 gpep517 INFO Installing /var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2-python3_10/wheel/pyspelling-2.8.2-py3-none-any.whl into /var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2-python3_10/install >2023-04-13 06:38:54,374 gpep517 INFO Installation complete > * Using python3.10 in global scope > * python3_10: running distutils-r1_run_phase python_compile_all >>>> Source compiled. >>>> Test phase: dev-python/pyspelling-2.8.2 > * python3_10: running distutils-r1_run_phase python_test >python3.10 -m pytest -vv -ra -l -Wdefault --color=no -o console_output_style=count -p no:cov -p no:flake8 -p no:flakes -p no:pylint -p no:markdown -p no:sugar -p no:xvfb -p no:tavern >============================= test session starts ============================== >platform linux -- Python 3.10.11, pytest-7.3.0, pluggy-1.0.0 -- /var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2-python3_10/install/usr/bin/python3.10 >cachedir: .pytest_cache >rootdir: /var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2 >plugins: mock-3.10.0, asyncio-0.21.0, anyio-3.6.1, forked-1.6.0, xdist-3.2.1, pkgcore-0.12.20 >asyncio: mode=strict >collecting ... collected 119 items > >tests/test_config.py::TestGlob::test_glob_limit PASSED [ 1/119] >tests/test_config.py::TestGlob::test_glob_no_limit FAILED [ 2/119] >tests/test_config.py::TestNoPipeline::test_no_pipeline FAILED [ 3/119] >tests/test_config.py::TestNoPipeline::test_no_pipeline_wordlist FAILED [ 4/119] >tests/test_config.py::TestNameGroup::test_all FAILED [ 5/119] >tests/test_config.py::TestNameGroup::test_bad_name PASSED [ 6/119] >tests/test_config.py::TestNameGroup::test_group FAILED [ 7/119] >tests/test_config.py::TestNameGroup::test_name FAILED [ 8/119] >tests/test_config.py::TestNameGroup::test_no_matrix PASSED [ 9/119] >tests/test_config.py::TestNameGroup::test_no_name PASSED [ 10/119] >tests/test_config.py::TestNameGroup::test_no_sources PASSED [ 11/119] >tests/test_config.py::TestNameGroup::test_sources FAILED [ 12/119] >tests/test_config.py::TestNameGroup::test_sources_invalid FAILED [ 13/119] >tests/test_config.py::TestNameGroup::test_too_many_filter_names PASSED [ 14/119] >tests/test_versions.py::TestVersion::test_asserts PASSED [ 15/119] >tests/test_versions.py::TestVersion::test_version_comparison PASSED [ 16/119] >tests/test_versions.py::TestVersion::test_version_output PASSED [ 17/119] >tests/test_versions.py::TestVersion::test_version_parsing PASSED [ 18/119] >tests/filters/test_context.py::TestContext::test_context FAILED [ 19/119] >tests/filters/test_context.py::TestContextChained::test_context_after_text FAILED [ 20/119] >tests/filters/test_cpp.py::TestCPP::test_cpp FAILED [ 21/119] >tests/filters/test_cpp.py::TestCPPGroupedComments::test_cpp_grouped_comments FAILED [ 22/119] >tests/filters/test_cpp.py::TestCPPStringAllow::test_exclude_raw FAILED [ 23/119] >tests/filters/test_cpp.py::TestCPPStringAllow::test_exclude_standard FAILED [ 24/119] >tests/filters/test_cpp.py::TestCPPStringAllow::test_exclude_unicode FAILED [ 25/119] >tests/filters/test_cpp.py::TestCPPStringAllow::test_exclude_wide FAILED [ 26/119] >tests/filters/test_cpp.py::TestCPPStringAllow::test_include_all FAILED [ 27/119] >tests/filters/test_cpp.py::TestCPPStringAllow::test_include_all_raw FAILED [ 28/119] >tests/filters/test_cpp.py::TestCPPStringAllow::test_include_all_unicode FAILED [ 29/119] >tests/filters/test_cpp.py::TestCPPStrings::test_cpp_strings FAILED [ 30/119] >tests/filters/test_cpp.py::TestCPPStrings::test_cpp_strings_escapes FAILED [ 31/119] >tests/filters/test_cpp.py::TestCPPGeneric::test_cpp FAILED [ 32/119] >tests/filters/test_cpp.py::TestCPPChained::test_cpp_after_text FAILED [ 33/119] >tests/filters/test_html.py::TestHTML::test_html FAILED [ 34/119] >tests/filters/test_html.py::TestCSSEscapes::test_css_escapes FAILED [ 35/119] >tests/filters/test_html.py::TestHtml5AttrNamespace::test_html_attr_namespace1 FAILED [ 36/119] >tests/filters/test_html.py::TestHtml5AttrNamespace::test_html_attr_namespace2 FAILED [ 37/119] >tests/filters/test_html.py::TestHtml5AttrNamespace::test_html_attr_namespace3 FAILED [ 38/119] >tests/filters/test_html.py::TestHtml5EmptySelectors::test_css_empty FAILED [ 39/119] >tests/filters/test_html.py::TestHtml5OnlySelectors::test_css_only_child FAILED [ 40/119] >tests/filters/test_html.py::TestHtml5OnlySelectors::test_css_only_type FAILED [ 41/119] >tests/filters/test_html.py::TestHtml5NthOfSelectors::test_css_child_of_s FAILED [ 42/119] >tests/filters/test_html.py::TestHtml5NthOfSelectors::test_css_child_of_s_vs_schild FAILED [ 43/119] >tests/filters/test_html.py::TestHtml5NthSelectors::test_css_first_child FAILED [ 44/119] >tests/filters/test_html.py::TestHtml5NthSelectors::test_css_first_type FAILED [ 45/119] >tests/filters/test_html.py::TestHtml5NthSelectors::test_css_last_child FAILED [ 46/119] >tests/filters/test_html.py::TestHtml5NthSelectors::test_css_last_type FAILED [ 47/119] >tests/filters/test_html.py::TestHtml5NthSelectors::test_css_nth_child1 FAILED [ 48/119] >tests/filters/test_html.py::TestHtml5NthSelectors::test_css_nth_child2 FAILED [ 49/119] >tests/filters/test_html.py::TestHtml5NthSelectors::test_css_nth_child3 FAILED [ 50/119] >tests/filters/test_html.py::TestHtml5NthSelectors::test_css_nth_child_bad FAILED [ 51/119] >tests/filters/test_html.py::TestHtml5NthSelectors::test_css_nth_complex_type FAILED [ 52/119] >tests/filters/test_html.py::TestHtml5NthSelectors::test_css_nth_even FAILED [ 53/119] >tests/filters/test_html.py::TestHtml5NthSelectors::test_css_nth_last_child FAILED [ 54/119] >tests/filters/test_html.py::TestHtml5NthSelectors::test_css_nth_last_type FAILED [ 55/119] >tests/filters/test_html.py::TestHtml5NthSelectors::test_css_nth_odd FAILED [ 56/119] >tests/filters/test_html.py::TestHtml5NthSelectors::test_css_nth_type FAILED [ 57/119] >tests/filters/test_html.py::TestHtml5AdvancedSelectors::test_css_nested_pseudo FAILED [ 58/119] >tests/filters/test_html.py::TestHtml5AdvancedSelectors::test_css_parents FAILED [ 59/119] >tests/filters/test_html.py::TestHtml5AdvancedSelectors::test_css_pseudo FAILED [ 60/119] >tests/filters/test_html.py::TestHtml5AdvancedSelectors::test_css_siblings FAILED [ 61/119] >tests/filters/test_html.py::TestHtml5AdvancedSelectors::test_has_pseudo FAILED [ 62/119] >tests/filters/test_html.py::TestHtml5AdvancedSelectors::test_has_pseudo2 FAILED [ 63/119] >tests/filters/test_html.py::TestHtml5AdvancedSelectors2::test_has_list FAILED [ 64/119] >tests/filters/test_html.py::TestHtml5AdvancedSelectors2::test_not_has_list FAILED [ 65/119] >tests/filters/test_html.py::TestHtml5AdvancedSelectors2::test_not_has_list2 FAILED [ 66/119] >tests/filters/test_html.py::TestHtml5AdvancedSelectors2::test_not_not FAILED [ 67/119] >tests/filters/test_html.py::TestHTML5LIB::test_html5lib FAILED [ 68/119] >tests/filters/test_html.py::TestXHTML::test_xhtml FAILED [ 69/119] >tests/filters/test_html.py::TestHTMLChained::test_html_after_text FAILED [ 70/119] >tests/filters/test_html.py::TestHTMLContext::test_html_context PASSED [ 71/119] >tests/filters/test_javascript.py::TestJavaScript::test_javascript FAILED [ 72/119] >tests/filters/test_javascript.py::TestJavaScriptStrings::test_javascript_strings FAILED [ 73/119] >tests/filters/test_javascript.py::TestJavaScriptStrings::test_javascript_temp_strings FAILED [ 74/119] >tests/filters/test_javascript.py::TestJavaScriptGroupedComments::test_javascript_grouped_comments FAILED [ 75/119] >tests/filters/test_javascript.py::TestJavaScriptChained::test_javascript_after_text FAILED [ 76/119] >tests/filters/test_markdown.py::TestMarkdown::test_markdown FAILED [ 77/119] >tests/filters/test_markdown.py::TestMarkdownChained::test_markdown_after_text FAILED [ 78/119] >tests/filters/test_odf.py::TestODFFilter::test_fodt FAILED [ 79/119] >tests/filters/test_odf.py::TestODFFilter::test_fodt_chained FAILED [ 80/119] >tests/filters/test_odf.py::TestODFFilter::test_odp FAILED [ 81/119] >tests/filters/test_odf.py::TestODFFilter::test_ods FAILED [ 82/119] >tests/filters/test_odf.py::TestODFFilter::test_odt FAILED [ 83/119] >tests/filters/test_odf.py::TestODFFilter::test_odt_chained FAILED [ 84/119] >tests/filters/test_ooxml.py::TestOOOXMLFilter::test_docx FAILED [ 85/119] >tests/filters/test_ooxml.py::TestOOOXMLFilter::test_docx_chained FAILED [ 86/119] >tests/filters/test_ooxml.py::TestOOOXMLFilter::test_pptx FAILED [ 87/119] >tests/filters/test_ooxml.py::TestOOOXMLFilter::test_xlsx FAILED [ 88/119] >tests/filters/test_python.py::TestPython::test_python FAILED [ 89/119] >tests/filters/test_python.py::TestPython::test_same_line FAILED [ 90/119] >tests/filters/test_python.py::TestPythonStrings::test_python_bytes FAILED [ 91/119] >tests/filters/test_python.py::TestPythonStrings::test_python_continue FAILED [ 92/119] >tests/filters/test_python.py::TestPythonStrings::test_python_format FAILED [ 93/119] >tests/filters/test_python.py::TestPythonStrings::test_python_raw FAILED [ 94/119] >tests/filters/test_python.py::TestPythonStrings::test_python_raw_bytes FAILED [ 95/119] >tests/filters/test_python.py::TestPythonStrings::test_python_raw_format FAILED [ 96/119] >tests/filters/test_python.py::TestPythonStrings::test_python_unicode FAILED [ 97/119] >tests/filters/test_python.py::TestPythonStringAllow::test_exclude_bytes FAILED [ 98/119] >tests/filters/test_python.py::TestPythonStringAllow::test_exclude_format FAILED [ 99/119] >tests/filters/test_python.py::TestPythonStringAllow::test_exclude_raw FAILED [100/119] >tests/filters/test_python.py::TestPythonStringAllow::test_exclude_unicode FAILED [101/119] >tests/filters/test_python.py::TestPythonStringAllow::test_include_all FAILED [102/119] >tests/filters/test_python.py::TestPythonStringAllow::test_include_all_raw FAILED [103/119] >tests/filters/test_python.py::TestPythonStringAllow::test_include_all_unicode FAILED [104/119] >tests/filters/test_python.py::TestPythonChained::test_python_after_text FAILED [105/119] >tests/filters/test_stylesheets.py::TestStylesheetsCSS::test_stylesheets_css FAILED [106/119] >tests/filters/test_stylesheets.py::TestStylesheetsSCSS::test_stylesheets_scss FAILED [107/119] >tests/filters/test_stylesheets.py::TestStylesheetsSASS::test_stylesheets_sass FAILED [108/119] >tests/filters/test_stylesheets.py::TestStylesheetsCSSChained::test_stylesheets_css_after_text FAILED [109/119] >tests/filters/test_text.py::TestText::test_text FAILED [110/119] >tests/filters/test_text.py::TestText::test_text_utf16 FAILED [111/119] >tests/filters/test_text.py::TestText::test_text_utf32 FAILED [112/119] >tests/filters/test_text.py::TestTextChained::test_text_after_python FAILED [113/119] >tests/filters/test_url.py::TestURL::test_url FAILED [114/119] >tests/filters/test_url.py::TestURLChained::test_url_after_text FAILED [115/119] >tests/filters/test_xml.py::TestXMLNamespaceNoDefault::test_xml_namespace_no_default FAILED [116/119] >tests/filters/test_xml.py::TestXMLRoot::test_xml_namespace_no_default FAILED [117/119] >tests/filters/test_xml.py::TestXMLNamespace::test_xml_namespace FAILED [118/119] >tests/flow_control/test_wildcard.py::TestWildcard::test_wildcard FAILED [119/119] > >=================================== FAILURES =================================== >_________________________ TestGlob.test_glob_no_limit __________________________ > >self = <tests.test_config.TestGlob testMethod=test_glob_no_limit> > > def test_glob_no_limit(self): > """Test when there is no limit for `glob` expansion patterns.""" > > config = self.dedent( > """ > matrix: > - name: glob > default_encoding: utf-8 > glob_pattern_limit: 0 > sources: > - '{}/**/test-{{1..11}}.txt' > aspell: > lang: en > d: en_US > hunspell: > d: en_US > pipeline: null > """ > ).format(self.tempdir) > self.mktemp('.glob.yml', config, 'utf-8') > > bad_words = ['helo', 'begn'] > good_words = ['yes', 'word'] > self.mktemp('test-1.txt', '\n'.join(bad_words + good_words), 'utf-8') >> self.assert_spellcheck('.glob.yml', bad_words) > >bad_words = ['helo', 'begn'] >config = ('matrix:\n' > '- name: glob\n' > ' default_encoding: utf-8\n' > ' glob_pattern_limit: 0\n' > ' sources:\n' > " - '@test_66_tmp_dir/**/test-{1..11}.txt'\n" > ' aspell:\n' > ' lang: en\n' > ' d: en_US\n' > ' hunspell:\n' > ' d: en_US\n' > ' pipeline: null\n') >good_words = ['yes', 'word'] >self = <tests.test_config.TestGlob testMethod=test_glob_no_limit> > >tests/test_config.py:56: >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ >tests/util.py:232: in assert_spellcheck > self.assertEqual(sorted(expected), sorted(list(words))) >E AssertionError: Lists differ: ['begn', 'helo'] != [] >E >E First list contains 2 additional elements. >E First extra element 0: >E 'begn' >E >E - ['begn', 'helo'] >E + [] > aspell_location = '/usr/bin/aspell' > config_file = '.glob.yml' > expected = ['helo', 'begn'] > groups = None > hunspell_location = None > names = None > results = Results(words=[], context='@test_66_tmp_dir/test-1.txt', category='file', error='Traceback (most recent call last):\n File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 421, in spell_check_no_pipeline\n wordlist = util.call_spellchecker(cmd, input_text=content, encoding=source.encoding)\n File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker\n return get_process_output(process, encoding)\n File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output\n raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors=\'replace\')))\nRuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading.\n') > running = 'aspell' > self = <tests.test_config.TestGlob testMethod=test_glob_no_limit> > sources = None > verbose = 4 > words = set() >----------------------------- Captured stdout call ----------------------------- >Using aspell to spellcheck glob >Running Task: glob... > >> Processing: @test_66_tmp_dir/test-1.txt > >b'helo\nbegn\nyes\nword' >Command: ['/usr/bin/aspell', 'list', '--encoding', 'utf-8', '--lang', 'en', '-d', 'en_US', '--mode', 'none', '@test_66_tmp_dir/test-1.txt'] >Context: @test_66_tmp_dir/test-1.txt >Traceback (most recent call last): > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 421, in spell_check_no_pipeline > wordlist = util.call_spellchecker(cmd, input_text=content, encoding=source.encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker > return get_process_output(process, encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output > raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors='replace'))) >RuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading. > > >_______________________ TestNoPipeline.test_no_pipeline ________________________ > >self = <tests.test_config.TestNoPipeline testMethod=test_no_pipeline> > > def test_no_pipeline(self): > """Test with no pipeline.""" > > config = self.dedent( > """ > matrix: > - name: no_pipeline > default_encoding: utf-8 > sources: > - '{}/**/*.txt' > aspell: > lang: en > d: en_US > hunspell: > d: en_US > pipeline: null > """ > ).format(self.tempdir) > self.mktemp('.nopipeline.yml', config, 'utf-8') > > bad_words = ['helo', 'begn'] > good_words = ['yes', 'word'] > self.mktemp('test.txt', '\n'.join(bad_words + good_words), 'utf-8') >> self.assert_spellcheck('.nopipeline.yml', bad_words) > >bad_words = ['helo', 'begn'] >config = ('matrix:\n' > '- name: no_pipeline\n' > ' default_encoding: utf-8\n' > ' sources:\n' > " - '@test_66_tmp_dir/**/*.txt'\n" > ' aspell:\n' > ' lang: en\n' > ' d: en_US\n' > ' hunspell:\n' > ' d: en_US\n' > ' pipeline: null\n') >good_words = ['yes', 'word'] >self = <tests.test_config.TestNoPipeline testMethod=test_no_pipeline> > >tests/test_config.py:85: >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ >tests/util.py:232: in assert_spellcheck > self.assertEqual(sorted(expected), sorted(list(words))) >E AssertionError: Lists differ: ['begn', 'helo'] != [] >E >E First list contains 2 additional elements. >E First extra element 0: >E 'begn' >E >E - ['begn', 'helo'] >E + [] > aspell_location = '/usr/bin/aspell' > config_file = '.nopipeline.yml' > expected = ['helo', 'begn'] > groups = None > hunspell_location = None > names = None > results = Results(words=[], context='@test_66_tmp_dir/test.txt', category='file', error='Traceback (most recent call last):\n File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 421, in spell_check_no_pipeline\n wordlist = util.call_spellchecker(cmd, input_text=content, encoding=source.encoding)\n File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker\n return get_process_output(process, encoding)\n File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output\n raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors=\'replace\')))\nRuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading.\n') > running = 'aspell' > self = <tests.test_config.TestNoPipeline testMethod=test_no_pipeline> > sources = None > verbose = 4 > words = set() >----------------------------- Captured stdout call ----------------------------- >Using aspell to spellcheck no_pipeline >Running Task: no_pipeline... > >> Processing: @test_66_tmp_dir/test.txt > >b'helo\nbegn\nyes\nword' >Command: ['/usr/bin/aspell', 'list', '--encoding', 'utf-8', '--lang', 'en', '-d', 'en_US', '--mode', 'none', '@test_66_tmp_dir/test.txt'] >Context: @test_66_tmp_dir/test.txt >Traceback (most recent call last): > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 421, in spell_check_no_pipeline > wordlist = util.call_spellchecker(cmd, input_text=content, encoding=source.encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker > return get_process_output(process, encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output > raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors='replace'))) >RuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading. > > >___________________ TestNoPipeline.test_no_pipeline_wordlist ___________________ > >self = <tests.test_config.TestNoPipeline testMethod=test_no_pipeline_wordlist> > > def test_no_pipeline_wordlist(self): > """Test text.""" > > config = self.dedent( > """ > matrix: > - name: no_pipeline > default_encoding: utf-8 > sources: > - '{temp}/**/*.txt' > aspell: > lang: en > d: en_US > hunspell: > d: en_US > pipeline: null > dictionary: > wordlists: > - '{temp}/mydict.wl' > output: '{temp}/mydict.dic' > """ > ).format(temp=self.tempdir) > self.mktemp('.nopipeline.yml', config, 'utf-8') > > bad_words = ['helo', 'begn'] > good_words = ['yes', 'word'] > self.mktemp('mydict.wl', '\n'.join(bad_words), 'utf-8') > self.mktemp('test.txt', '\n'.join(bad_words + good_words), 'utf-8') >> self.assert_spellcheck('.nopipeline.yml', []) > >bad_words = ['helo', 'begn'] >config = ('matrix:\n' > '- name: no_pipeline\n' > ' default_encoding: utf-8\n' > ' sources:\n' > " - '@test_66_tmp_dir/**/*.txt'\n" > ' aspell:\n' > ' lang: en\n' > ' d: en_US\n' > ' hunspell:\n' > ' d: en_US\n' > ' pipeline: null\n' > ' dictionary:\n' > ' wordlists:\n' > " - '@test_66_tmp_dir/mydict.wl'\n" > " output: '@test_66_tmp_dir/mydict.dic'\n") >good_words = ['yes', 'word'] >self = <tests.test_config.TestNoPipeline testMethod=test_no_pipeline_wordlist> > >tests/test_config.py:115: >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ >tests/util.py:219: in assert_spellcheck > for results in spellcheck( > aspell_location = '/usr/bin/aspell' > config_file = '.nopipeline.yml' > expected = [] > groups = None > hunspell_location = None > names = None > running = 'aspell' > self = <tests.test_config.TestNoPipeline testMethod=test_no_pipeline_wordlist> > sources = None > verbose = 4 > words = set() >pyspelling/__init__.py:662: in spellcheck > for result in spellchecker.run_task(task, source_patterns=sources): > aspell = <pyspelling.Aspell object at 0xffff94ff65c0> > binary = '/usr/bin/aspell' > checker = 'aspell' > config = {'matrix': [{'aspell': {'d': 'en_US', 'lang': 'en'}, > 'default_encoding': 'utf-8', > 'dictionary': {'output': '@test_66_tmp_dir/mydict.dic', > 'wordlists': ['@test_66_tmp_dir/mydict.wl']}, > 'hunspell': {'d': 'en_US'}, > 'name': 'no_pipeline', > 'pipeline': None, > 'sources': ['@test_66_tmp_dir/**/*.txt']}]} > config_file = '@test_66_tmp_dir/.nopipeline.yml' > debug = True > groups = set() > hunspell = None > matrix = [{'aspell': {'d': 'en_US', 'lang': 'en'}, > 'default_encoding': 'utf-8', > 'dictionary': {'output': '@test_66_tmp_dir/mydict.dic', > 'wordlists': ['@test_66_tmp_dir/mydict.wl']}, > 'hunspell': {'d': 'en_US'}, > 'name': 'no_pipeline', > 'pipeline': None, > 'sources': ['@test_66_tmp_dir/**/*.txt']}] > names = set() > preferred_checker = 'aspell' > processed_tasks = 1 > sources = [] > spellchecker = <pyspelling.Aspell object at 0xffff94ff65c0> > task = {'aspell': {'d': 'en_US', 'lang': 'en'}, > 'default_encoding': 'utf-8', > 'dictionary': {'output': '@test_66_tmp_dir/mydict.dic', > 'wordlists': ['@test_66_tmp_dir/mydict.wl']}, > 'hunspell': {'d': 'en_US'}, > 'name': 'no_pipeline', > 'pipeline': None, > 'sources': ['@test_66_tmp_dir/**/*.txt']} > verbose = 4 >pyspelling/__init__.py:308: in run_task > personal_dict = self.setup_dictionary(task) > options = {'d': 'en_US', 'lang': 'en'} > self = <pyspelling.Aspell object at 0xffff94ff65c0> > source_patterns = [] > task = {'aspell': {'d': 'en_US', 'lang': 'en'}, > 'default_encoding': 'utf-8', > 'dictionary': {'output': '@test_66_tmp_dir/mydict.dic', > 'wordlists': ['@test_66_tmp_dir/mydict.wl']}, > 'hunspell': {'d': 'en_US'}, > 'name': 'no_pipeline', > 'pipeline': None, > 'sources': ['@test_66_tmp_dir/**/*.txt']} >pyspelling/__init__.py:347: in setup_dictionary > self.compile_dictionary( > aspell_options = {'d': 'en_US', 'lang': 'en'} > dictionary_options = {'output': '@test_66_tmp_dir/mydict.dic', > 'wordlists': ['@test_66_tmp_dir/mydict.wl']} > lang = 'en' > output = '/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/@test_66_tmp_dir/mydict.dic' > self = <pyspelling.Aspell object at 0xffff94ff65c0> > task = {'aspell': {'d': 'en_US', 'lang': 'en'}, > 'default_encoding': 'utf-8', > 'dictionary': {'output': '@test_66_tmp_dir/mydict.dic', > 'wordlists': ['@test_66_tmp_dir/mydict.wl']}, > 'hunspell': {'d': 'en_US'}, > 'name': 'no_pipeline', > 'pipeline': None, > 'sources': ['@test_66_tmp_dir/**/*.txt']} > wordlists = ['@test_66_tmp_dir/mydict.wl'] >pyspelling/__init__.py:386: in compile_dictionary > util.call( > cmd = ['/usr/bin/aspell', > '--lang', > 'en', > '--encoding', > 'utf-8', > 'create', > 'master', > '/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/@test_66_tmp_dir/mydict.dic'] > encoding = 'utf-8' > lang = 'en' > output = '/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/@test_66_tmp_dir/mydict.dic' > output_location = '/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/@test_66_tmp_dir' > self = <pyspelling.Aspell object at 0xffff94ff65c0> > src = <_io.BufferedReader name='@test_66_tmp_dir/mydict.wl'> > word = b'begn' > wordlist = '@test_66_tmp_dir/mydict.wl' > wordlists = ['@test_66_tmp_dir/mydict.wl'] > words = {b'begn', b'helo'} >pyspelling/util/__init__.py:105: in call > return get_process_output(process, encoding) > cmd = ['/usr/bin/aspell', > '--lang', > 'en', > '--encoding', > 'utf-8', > 'create', > 'master', > '/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/@test_66_tmp_dir/mydict.dic'] > encoding = None > input_file = None > input_text = b'begn\nhelo\n' > process = <Popen: returncode: 1 args: ['/usr/bin/aspell', '--lang', 'en', '--encoding'...> >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > >process = <Popen: returncode: 1 args: ['/usr/bin/aspell', '--lang', 'en', '--encoding'...> >encoding = 'utf-8' > > def get_process_output(process, encoding=None): > """Get the output from the process.""" > > output = process.communicate() > returncode = process.returncode > > if not encoding: > try: > encoding = sys.stdout.encoding > except Exception: > encoding = locale.getpreferredencoding() > > if returncode != 0: >> raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors='replace'))) >E RuntimeError: Runtime Error: Error: The language "en" is not known. This is probably because: the file "/usr/lib64/aspell-0.60/en.dat" can not be opened for reading. > >encoding = 'utf-8' >output = (b'Error: The language "en" is not known. This is probably because: the file "/' > b'usr/lib64/aspell-0.60/en.dat" can not be opened for reading.\n', > None) >process = <Popen: returncode: 1 args: ['/usr/bin/aspell', '--lang', 'en', '--encoding'...> >returncode = 1 > >pyspelling/util/__init__.py:89: RuntimeError >----------------------------- Captured stdout call ----------------------------- >Using aspell to spellcheck no_pipeline >Running Task: no_pipeline... >Compiling Dictionary... >['/usr/bin/aspell', '--lang', 'en', '--encoding', 'utf-8', 'create', 'master', '/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/@test_66_tmp_dir/mydict.dic'] >Current wordlist: '@test_66_tmp_dir/mydict.wl' >Problem compiling dictionary. Check the binary path and options. >____________________________ TestNameGroup.test_all ____________________________ > >self = <tests.test_config.TestNameGroup testMethod=test_all> > > def test_all(self): > """Test all.""" > >> self.assert_spellcheck('.source.yml', self.bad_words1 + self.bad_words2 + self.bad_words3) > >self = <tests.test_config.TestNameGroup testMethod=test_all> > >tests/test_config.py:174: >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ >tests/util.py:232: in assert_spellcheck > self.assertEqual(sorted(expected), sorted(list(words))) >E AssertionError: Lists differ: ['begn', 'eolh', 'helo', 'ngbe', 'ngeb', 'oleh'] != [] >E >E First list contains 6 additional elements. >E First extra element 0: >E 'begn' >E >E - ['begn', 'eolh', 'helo', 'ngbe', 'ngeb', 'oleh'] >E + [] > aspell_location = '/usr/bin/aspell' > config_file = '.source.yml' > expected = ['helo', 'begn', 'oleh', 'ngeb', 'eolh', 'ngbe'] > groups = None > hunspell_location = None > names = None > results = Results(words=[], context='@test_66_tmp_dir/test3.txt', category='text', error='Traceback (most recent call last):\n File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline\n wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding)\n File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker\n return get_process_output(process, encoding)\n File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output\n raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors=\'replace\')))\nRuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading.\n') > running = 'aspell' > self = <tests.test_config.TestNameGroup testMethod=test_all> > sources = None > verbose = 4 > words = set() >----------------------------- Captured stdout call ----------------------------- >Using aspell to spellcheck name >Running Task: name... > >> Processing: @test_66_tmp_dir/test1.txt > >b'helo\nbegn\nyes\nword' >Command: ['/usr/bin/aspell', 'list', '--encoding', 'utf-8', '--lang', 'en', '-d', 'en_US', '--mode', 'none'] >Context: @test_66_tmp_dir/test1.txt >Traceback (most recent call last): > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline > wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker > return get_process_output(process, encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output > raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors='replace'))) >RuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading. > > >Using aspell to spellcheck name >Running Task: name... > >> Processing: @test_66_tmp_dir/test2.txt > >b'oleh\nngeb\nyes\nword' >Command: ['/usr/bin/aspell', 'list', '--encoding', 'utf-8', '--lang', 'en', '-d', 'en_US', '--mode', 'none'] >Context: @test_66_tmp_dir/test2.txt >Traceback (most recent call last): > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline > wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker > return get_process_output(process, encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output > raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors='replace'))) >RuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading. > > >Using aspell to spellcheck name3 >Running Task: name3... > >> Processing: @test_66_tmp_dir/test3.txt > >b'eolh\nngbe\nyes\nword' >Command: ['/usr/bin/aspell', 'list', '--encoding', 'utf-8', '--lang', 'en', '-d', 'en_US', '--mode', 'none'] >Context: @test_66_tmp_dir/test3.txt >Traceback (most recent call last): > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline > wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker > return get_process_output(process, encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output > raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors='replace'))) >RuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading. > > >___________________________ TestNameGroup.test_group ___________________________ > >self = <tests.test_config.TestNameGroup testMethod=test_group> > > def test_group(self): > """Test group works.""" > >> self.assert_spellcheck('.source.yml', self.bad_words1 + self.bad_words3, groups=['group1']) > >self = <tests.test_config.TestNameGroup testMethod=test_group> > >tests/test_config.py:184: >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ >tests/util.py:232: in assert_spellcheck > self.assertEqual(sorted(expected), sorted(list(words))) >E AssertionError: Lists differ: ['begn', 'eolh', 'helo', 'ngbe'] != [] >E >E First list contains 4 additional elements. >E First extra element 0: >E 'begn' >E >E - ['begn', 'eolh', 'helo', 'ngbe'] >E + [] > aspell_location = '/usr/bin/aspell' > config_file = '.source.yml' > expected = ['helo', 'begn', 'eolh', 'ngbe'] > groups = ['group1'] > hunspell_location = None > names = None > results = Results(words=[], context='@test_66_tmp_dir/test3.txt', category='text', error='Traceback (most recent call last):\n File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline\n wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding)\n File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker\n return get_process_output(process, encoding)\n File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output\n raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors=\'replace\')))\nRuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading.\n') > running = 'aspell' > self = <tests.test_config.TestNameGroup testMethod=test_group> > sources = None > verbose = 4 > words = set() >----------------------------- Captured stdout call ----------------------------- >Using aspell to spellcheck name >Running Task: name... > >> Processing: @test_66_tmp_dir/test1.txt > >b'helo\nbegn\nyes\nword' >Command: ['/usr/bin/aspell', 'list', '--encoding', 'utf-8', '--lang', 'en', '-d', 'en_US', '--mode', 'none'] >Context: @test_66_tmp_dir/test1.txt >Traceback (most recent call last): > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline > wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker > return get_process_output(process, encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output > raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors='replace'))) >RuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading. > > >Using aspell to spellcheck name3 >Running Task: name3... > >> Processing: @test_66_tmp_dir/test3.txt > >b'eolh\nngbe\nyes\nword' >Command: ['/usr/bin/aspell', 'list', '--encoding', 'utf-8', '--lang', 'en', '-d', 'en_US', '--mode', 'none'] >Context: @test_66_tmp_dir/test3.txt >Traceback (most recent call last): > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline > wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker > return get_process_output(process, encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output > raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors='replace'))) >RuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading. > > >___________________________ TestNameGroup.test_name ____________________________ > >self = <tests.test_config.TestNameGroup testMethod=test_name> > > def test_name(self): > """Test name works.""" > >> self.assert_spellcheck('.source.yml', self.bad_words2, names=['name']) > >self = <tests.test_config.TestNameGroup testMethod=test_name> > >tests/test_config.py:179: >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ >tests/util.py:232: in assert_spellcheck > self.assertEqual(sorted(expected), sorted(list(words))) >E AssertionError: Lists differ: ['ngeb', 'oleh'] != [] >E >E First list contains 2 additional elements. >E First extra element 0: >E 'ngeb' >E >E - ['ngeb', 'oleh'] >E + [] > aspell_location = '/usr/bin/aspell' > config_file = '.source.yml' > expected = ['oleh', 'ngeb'] > groups = None > hunspell_location = None > names = ['name'] > results = Results(words=[], context='@test_66_tmp_dir/test2.txt', category='text', error='Traceback (most recent call last):\n File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline\n wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding)\n File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker\n return get_process_output(process, encoding)\n File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output\n raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors=\'replace\')))\nRuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading.\n') > running = 'aspell' > self = <tests.test_config.TestNameGroup testMethod=test_name> > sources = None > verbose = 4 > words = set() >----------------------------- Captured stdout call ----------------------------- >Using aspell to spellcheck name >Running Task: name... > >> Processing: @test_66_tmp_dir/test2.txt > >b'oleh\nngeb\nyes\nword' >Command: ['/usr/bin/aspell', 'list', '--encoding', 'utf-8', '--lang', 'en', '-d', 'en_US', '--mode', 'none'] >Context: @test_66_tmp_dir/test2.txt >Traceback (most recent call last): > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline > wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker > return get_process_output(process, encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output > raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors='replace'))) >RuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading. > > >__________________________ TestNameGroup.test_sources __________________________ > >self = <tests.test_config.TestNameGroup testMethod=test_sources> > > def test_sources(self): > """Test source override.""" > >> self.assert_spellcheck('.source.yml', self.bad_words1, names=['name'], sources=[self.tempdir + '/**/test1.txt']) > >self = <tests.test_config.TestNameGroup testMethod=test_sources> > >tests/test_config.py:212: >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ >tests/util.py:232: in assert_spellcheck > self.assertEqual(sorted(expected), sorted(list(words))) >E AssertionError: Lists differ: ['begn', 'helo'] != [] >E >E First list contains 2 additional elements. >E First extra element 0: >E 'begn' >E >E - ['begn', 'helo'] >E + [] > aspell_location = '/usr/bin/aspell' > config_file = '.source.yml' > expected = ['helo', 'begn'] > groups = None > hunspell_location = None > names = ['name'] > results = Results(words=[], context='@test_66_tmp_dir/test1.txt', category='text', error='Traceback (most recent call last):\n File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline\n wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding)\n File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker\n return get_process_output(process, encoding)\n File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output\n raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors=\'replace\')))\nRuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading.\n') > running = 'aspell' > self = <tests.test_config.TestNameGroup testMethod=test_sources> > sources = ['@test_66_tmp_dir/**/test1.txt'] > verbose = 4 > words = set() >----------------------------- Captured stdout call ----------------------------- >Using aspell to spellcheck name >Running Task: name... > >> Processing: @test_66_tmp_dir/test1.txt > >b'helo\nbegn\nyes\nword' >Command: ['/usr/bin/aspell', 'list', '--encoding', 'utf-8', '--lang', 'en', '-d', 'en_US', '--mode', 'none'] >Context: @test_66_tmp_dir/test1.txt >Traceback (most recent call last): > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline > wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker > return get_process_output(process, encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output > raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors='replace'))) >RuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading. > > >______________________ TestNameGroup.test_sources_invalid ______________________ > >self = <tests.test_config.TestNameGroup testMethod=test_sources_invalid> > > def test_sources_invalid(self): > """Test that source override won't work if multiple names are defined.""" > >> self.assert_spellcheck( > '.source.yml', self.bad_words2, names=['name', 'other_name'], sources=[self.tempdir + '/**/test1.txt'] > ) > >self = <tests.test_config.TestNameGroup testMethod=test_sources_invalid> > >tests/test_config.py:217: >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ >tests/util.py:232: in assert_spellcheck > self.assertEqual(sorted(expected), sorted(list(words))) >E AssertionError: Lists differ: ['ngeb', 'oleh'] != [] >E >E First list contains 2 additional elements. >E First extra element 0: >E 'ngeb' >E >E - ['ngeb', 'oleh'] >E + [] > aspell_location = '/usr/bin/aspell' > config_file = '.source.yml' > expected = ['oleh', 'ngeb'] > groups = None > hunspell_location = None > names = ['name', 'other_name'] > results = Results(words=[], context='@test_66_tmp_dir/test2.txt', category='text', error='Traceback (most recent call last):\n File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline\n wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding)\n File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker\n return get_process_output(process, encoding)\n File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output\n raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors=\'replace\')))\nRuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading.\n') > running = 'aspell' > self = <tests.test_config.TestNameGroup testMethod=test_sources_invalid> > sources = ['@test_66_tmp_dir/**/test1.txt'] > verbose = 4 > words = set() >----------------------------- Captured stdout call ----------------------------- >Using aspell to spellcheck name >Running Task: name... > >> Processing: @test_66_tmp_dir/test2.txt > >b'oleh\nngeb\nyes\nword' >Command: ['/usr/bin/aspell', 'list', '--encoding', 'utf-8', '--lang', 'en', '-d', 'en_US', '--mode', 'none'] >Context: @test_66_tmp_dir/test2.txt >Traceback (most recent call last): > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline > wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker > return get_process_output(process, encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output > raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors='replace'))) >RuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading. > > >___________________________ TestContext.test_context ___________________________ > >self = <tests.filters.test_context.TestContext testMethod=test_context> > > def test_context(self): > """Test text.""" > > bad_words = ['helo', 'begn'] > good_words = ['yes', 'word'] > template = self.dedent( > """ > {} > ``` > djlask dkjsl dksj > kudk alks > ``` > > Line with `incoretc txet`. > """ > ).format('\n'.join(bad_words + good_words)) > self.mktemp('test.txt', template, 'utf-8') >> self.assert_spellcheck('.context.yml', bad_words) > >bad_words = ['helo', 'begn'] >good_words = ['yes', 'word'] >self = <tests.filters.test_context.TestContext testMethod=test_context> >template = ('helo\n' > 'begn\n' > 'yes\n' > 'word\n' > '```\n' > 'djlask dkjsl dksj\n' > 'kudk alks\n' > '```\n' > '\n' > 'Line with `incoretc txet`.\n') > >tests/filters/test_context.py:57: >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ >tests/util.py:232: in assert_spellcheck > self.assertEqual(sorted(expected), sorted(list(words))) >E AssertionError: Lists differ: ['begn', 'helo'] != [] >E >E First list contains 2 additional elements. >E First extra element 0: >E 'begn' >E >E - ['begn', 'helo'] >E + [] > aspell_location = '/usr/bin/aspell' > config_file = '.context.yml' > expected = ['helo', 'begn'] > groups = None > hunspell_location = None > names = None > results = Results(words=[], context='@test_66_tmp_dir/test.txt', category='context', error='Traceback (most recent call last):\n File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline\n wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding)\n File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker\n return get_process_output(process, encoding)\n File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output\n raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors=\'replace\')))\nRuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading.\n') > running = 'aspell' > self = <tests.filters.test_context.TestContext testMethod=test_context> > sources = None > verbose = 4 > words = set() >----------------------------- Captured stdout call ----------------------------- >Using aspell to spellcheck context >Running Task: context... > >> Processing: @test_66_tmp_dir/test.txt > >b'helo\nbegn\nyes\nword\n \n\nLine with .\n' >Command: ['/usr/bin/aspell', 'list', '--encoding', 'utf-8', '--lang', 'en', '-d', 'en_US', '--mode', 'none'] >Context: @test_66_tmp_dir/test.txt >Traceback (most recent call last): > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline > wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker > return get_process_output(process, encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output > raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors='replace'))) >RuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading. > > >__________________ TestContextChained.test_context_after_text __________________ > >self = <tests.filters.test_context.TestContextChained testMethod=test_context_after_text> > > def test_context_after_text(self): > """Test text.""" > > bad_words = ['helo', 'begn'] > good_words = ['yes', 'word'] > template = self.dedent( > """ > {} > ``` > djlask dkjsl dksj > kudk alks > ``` > > Line with `incoretc txet`. > """ > ).format('\n'.join(bad_words + good_words)) > self.mktemp('test.txt', template, 'utf-8') >> self.assert_spellcheck('.context.yml', bad_words) > >bad_words = ['helo', 'begn'] >good_words = ['yes', 'word'] >self = <tests.filters.test_context.TestContextChained testMethod=test_context_after_text> >template = ('helo\n' > 'begn\n' > 'yes\n' > 'word\n' > '```\n' > 'djlask dkjsl dksj\n' > 'kudk alks\n' > '```\n' > '\n' > 'Line with `incoretc txet`.\n') > >tests/filters/test_context.py:113: >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ >tests/util.py:232: in assert_spellcheck > self.assertEqual(sorted(expected), sorted(list(words))) >E AssertionError: Lists differ: ['begn', 'helo'] != [] >E >E First list contains 2 additional elements. >E First extra element 0: >E 'begn' >E >E - ['begn', 'helo'] >E + [] > aspell_location = '/usr/bin/aspell' > config_file = '.context.yml' > expected = ['helo', 'begn'] > groups = None > hunspell_location = None > names = None > results = Results(words=[], context='@test_66_tmp_dir/test.txt', category='context', error='Traceback (most recent call last):\n File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline\n wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding)\n File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker\n return get_process_output(process, encoding)\n File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output\n raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors=\'replace\')))\nRuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading.\n') > running = 'aspell' > self = <tests.filters.test_context.TestContextChained testMethod=test_context_after_text> > sources = None > verbose = 4 > words = set() >----------------------------- Captured stdout call ----------------------------- >Using aspell to spellcheck context >Running Task: context... > >> Processing: @test_66_tmp_dir/test.txt > >b'helo\nbegn\nyes\nword\n \n\nLine with .\n' >Command: ['/usr/bin/aspell', 'list', '--encoding', 'utf-8', '--lang', 'en', '-d', 'en_US', '--mode', 'none'] >Context: @test_66_tmp_dir/test.txt >Traceback (most recent call last): > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline > wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker > return get_process_output(process, encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output > raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors='replace'))) >RuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading. > > >_______________________________ TestCPP.test_cpp _______________________________ > >self = <tests.filters.test_cpp.TestCPP testMethod=test_cpp> > > def test_cpp(self): > """Test CPP.""" > > bad_block = ['helo', 'begn'] > bad_comments = ['flga', 'graet'] > bad_comments2 = ['recieve', 'teh'] > bad_comments3 = ['hpoe', 'lvoe'] > bad_words = bad_block + bad_comments + bad_comments2 + bad_comments3 > good_words = ['yes', 'word'] > template = self.dedent( > """ > /* > {} > */ > uint8_t func() {{ > uint8_t tsdd = 3; > // {} > // {} \ > reurn tsdd; > > uint32_t trigraph_test = (CONSTANT_1 ??' ADKASLD) ??' CONSTANT_2; // {} > > rtuern ddst; > }} > """ > ).format( > '\n'.join(bad_block + good_words), > ' '.join(bad_comments + good_words), > ' '.join(bad_comments2 + good_words), > ' '.join(bad_comments3 + good_words) > ) > > # Capture comment continuation > bad_words.extend(['reurn', 'tsdd']) > self.mktemp('test.txt', template, 'utf-8') >> self.assert_spellcheck('.cpp.yml', bad_words) > >bad_block = ['helo', 'begn'] >bad_comments = ['flga', 'graet'] >bad_comments2 = ['recieve', 'teh'] >bad_comments3 = ['hpoe', 'lvoe'] >bad_words = ['helo', > 'begn', > 'flga', > 'graet', > 'recieve', > 'teh', > 'hpoe', > 'lvoe', > 'reurn', > 'tsdd'] >good_words = ['yes', 'word'] >self = <tests.filters.test_cpp.TestCPP testMethod=test_cpp> >template = ('/*\n' > 'helo\n' > 'begn\n' > 'yes\n' > 'word\n' > '*/\n' > 'uint8_t func() {\n' > ' uint8_t tsdd = 3;\n' > ' // flga graet yes word\n' > ' // recieve teh yes word reurn tsdd;\n' > '\n' > " uint32_t trigraph_test = (CONSTANT_1 ??' ADKASLD) ??' CONSTANT_2; // " > 'hpoe lvoe yes word\n' > '\n' > ' rtuern ddst;\n' > '}\n') > >tests/filters/test_cpp.py:65: >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ >tests/util.py:232: in assert_spellcheck > self.assertEqual(sorted(expected), sorted(list(words))) >E AssertionError: Lists differ: ['begn', 'flga', 'graet', 'helo', 'hpoe', [37 chars]sdd'] != [] >E >E First list contains 10 additional elements. >E First extra element 0: >E 'begn' >E >E + [] >E - ['begn', >E - 'flga', >E - 'graet', >E - 'helo', >E - 'hpoe', >E - 'lvoe', >E - 'recieve', >E - 'reurn', >E - 'teh', >E - 'tsdd'] > aspell_location = '/usr/bin/aspell' > config_file = '.cpp.yml' > expected = ['helo', > 'begn', > 'flga', > 'graet', > 'recieve', > 'teh', > 'hpoe', > 'lvoe', > 'reurn', > 'tsdd'] > groups = None > hunspell_location = None > names = None > results = Results(words=[], context='@test_66_tmp_dir/test.txt (12)', category='cpp-line-comment', error='Traceback (most recent call last):\n File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline\n wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding)\n File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker\n return get_process_output(process, encoding)\n File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output\n raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors=\'replace\')))\nRuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading.\n') > running = 'aspell' > self = <tests.filters.test_cpp.TestCPP testMethod=test_cpp> > sources = None > verbose = 4 > words = set() >----------------------------- Captured stdout call ----------------------------- >Using aspell to spellcheck cpp >Running Task: cpp... > >> Processing: @test_66_tmp_dir/test.txt > >b'\nhelo\nbegn\nyes\nword\n' >Command: ['/usr/bin/aspell', 'list', '--encoding', 'utf-8', '--lang', 'en', '-d', 'en_US', '--mode', 'none'] >Context: @test_66_tmp_dir/test.txt (1) >Traceback (most recent call last): > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline > wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker > return get_process_output(process, encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output > raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors='replace'))) >RuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading. > > >b'flga graet yes word\nrecieve teh yes word reurn tsdd;' >Command: ['/usr/bin/aspell', 'list', '--encoding', 'utf-8', '--lang', 'en', '-d', 'en_US', '--mode', 'none'] >Context: @test_66_tmp_dir/test.txt (9) >Traceback (most recent call last): > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline > wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker > return get_process_output(process, encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output > raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors='replace'))) >RuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading. > > >b'hpoe lvoe yes word' >Command: ['/usr/bin/aspell', 'list', '--encoding', 'utf-8', '--lang', 'en', '-d', 'en_US', '--mode', 'none'] >Context: @test_66_tmp_dir/test.txt (12) >Traceback (most recent call last): > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline > wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker > return get_process_output(process, encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output > raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors='replace'))) >RuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading. > > >_______________ TestCPPGroupedComments.test_cpp_grouped_comments _______________ > >self = <tests.filters.test_cpp.TestCPPGroupedComments testMethod=test_cpp_grouped_comments> > > def test_cpp_grouped_comments(self): > """Test CPP.""" > > template = self.dedent( > """ > uint8_t func() { > > uint32_t test = 3; // what > // bbbb > > // ``` > // akdjal dlkajdlf dkkjkj > // skjdl djkjf lslsl > // ``` > > // aaaa > } > """ > ) > bad_words = ['aaaa', 'bbbb'] > self.mktemp('test.txt', template, 'utf-8') >> self.assert_spellcheck('.cpp.yml', bad_words) > >bad_words = ['aaaa', 'bbbb'] >self = <tests.filters.test_cpp.TestCPPGroupedComments testMethod=test_cpp_grouped_comments> >template = ('uint8_t func() {\n' > '\n' > ' uint32_t test = 3; // what\n' > ' // bbbb\n' > '\n' > ' // ```\n' > ' // akdjal dlkajdlf dkkjkj\n' > ' // skjdl djkjf lslsl\n' > ' // ```\n' > '\n' > ' // aaaa\n' > '}\n') > >tests/filters/test_cpp.py:127: >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ >tests/util.py:232: in assert_spellcheck > self.assertEqual(sorted(expected), sorted(list(words))) >E AssertionError: Lists differ: ['aaaa', 'bbbb'] != [] >E >E First list contains 2 additional elements. >E First extra element 0: >E 'aaaa' >E >E - ['aaaa', 'bbbb'] >E + [] > aspell_location = '/usr/bin/aspell' > config_file = '.cpp.yml' > expected = ['aaaa', 'bbbb'] > groups = None > hunspell_location = None > names = None > results = Results(words=[], context='@test_66_tmp_dir/test.txt (11)', category='context', error='Traceback (most recent call last):\n File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline\n wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding)\n File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker\n return get_process_output(process, encoding)\n File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output\n raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors=\'replace\')))\nRuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading.\n') > running = 'aspell' > self = <tests.filters.test_cpp.TestCPPGroupedComments testMethod=test_cpp_grouped_comments> > sources = None > verbose = 4 > words = set() >----------------------------- Captured stdout call ----------------------------- >Using aspell to spellcheck cpp >Running Task: cpp... > >> Processing: @test_66_tmp_dir/test.txt > >b'what' >Command: ['/usr/bin/aspell', 'list', '--encoding', 'utf-8', '--lang', 'en', '-d', 'en_US', '--mode', 'none'] >Context: @test_66_tmp_dir/test.txt (3) >Traceback (most recent call last): > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline > wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker > return get_process_output(process, encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output > raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors='replace'))) >RuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading. > > >b'bbbb' >Command: ['/usr/bin/aspell', 'list', '--encoding', 'utf-8', '--lang', 'en', '-d', 'en_US', '--mode', 'none'] >Context: @test_66_tmp_dir/test.txt (4) >Traceback (most recent call last): > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline > wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker > return get_process_output(process, encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output > raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors='replace'))) >RuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading. > > >b'aaaa' >Command: ['/usr/bin/aspell', 'list', '--encoding', 'utf-8', '--lang', 'en', '-d', 'en_US', '--mode', 'none'] >Context: @test_66_tmp_dir/test.txt (11) >Traceback (most recent call last): > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline > wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker > return get_process_output(process, encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output > raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors='replace'))) >RuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading. > > >_____________________ TestCPPStringAllow.test_exclude_raw ______________________ > >self = <tests.filters.test_cpp.TestCPPStringAllow testMethod=test_exclude_raw> > > def test_exclude_raw(self): > """Test raw exclusion.""" > > config = self.dedent( > """ > matrix: > - name: cpp > sources: > - '{}/**/*.txt' > aspell: > lang: en > d: en_US > hunspell: > d: en_US > pipeline: > - pyspelling.filters.cpp: > strings: true > line_comments: false > group_comments: true > string_types: uls > """ > ).format(self.tempdir) > self.mktemp('.cpp.yml', config, 'utf-8') >> self.assert_spellcheck('.cpp.yml', ['aaaa', 'bbbb', 'cccc', 'dddd', 'eeee']) > >config = ('matrix:\n' > '- name: cpp\n' > ' sources:\n' > " - '@test_66_tmp_dir/**/*.txt'\n" > ' aspell:\n' > ' lang: en\n' > ' d: en_US\n' > ' hunspell:\n' > ' d: en_US\n' > ' pipeline:\n' > ' - pyspelling.filters.cpp:\n' > ' strings: true\n' > ' line_comments: false\n' > ' group_comments: true\n' > ' string_types: uls\n') >self = <tests.filters.test_cpp.TestCPPStringAllow testMethod=test_exclude_raw> > >tests/filters/test_cpp.py:179: >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ >tests/util.py:232: in assert_spellcheck > self.assertEqual(sorted(expected), sorted(list(words))) >E AssertionError: Lists differ: ['aaaa', 'bbbb', 'cccc', 'dddd', 'eeee'] != [] >E >E First list contains 5 additional elements. >E First extra element 0: >E 'aaaa' >E >E - ['aaaa', 'bbbb', 'cccc', 'dddd', 'eeee'] >E + [] > aspell_location = '/usr/bin/aspell' > config_file = '.cpp.yml' > expected = ['aaaa', 'bbbb', 'cccc', 'dddd', 'eeee'] > groups = None > hunspell_location = None > names = None > results = Results(words=[], context='@test_66_tmp_dir/test.txt (6)', category='cpp-string', error='Traceback (most recent call last):\n File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline\n wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding)\n File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker\n return get_process_output(process, encoding)\n File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output\n raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors=\'replace\')))\nRuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading.\n') > running = 'aspell' > self = <tests.filters.test_cpp.TestCPPStringAllow testMethod=test_exclude_raw> > sources = None > verbose = 4 > words = set() >----------------------------- Captured stdout call ----------------------------- >Using aspell to spellcheck cpp >Running Task: cpp... > >> Processing: @test_66_tmp_dir/test.txt > >b'aaaa' >Command: ['/usr/bin/aspell', 'list', '--encoding', 'utf-8', '--lang', 'en', '-d', 'en_US', '--mode', 'none'] >Context: @test_66_tmp_dir/test.txt (2) >Traceback (most recent call last): > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline > wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker > return get_process_output(process, encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output > raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors='replace'))) >RuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading. > > >b'bbbb' >Command: ['/usr/bin/aspell', 'list', '--encoding', 'utf-8', '--lang', 'en', '-d', 'en_US', '--mode', 'none'] >Context: @test_66_tmp_dir/test.txt (3) >Traceback (most recent call last): > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline > wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker > return get_process_output(process, encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output > raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors='replace'))) >RuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading. > > >b'cccc' >Command: ['/usr/bin/aspell', 'list', '--encoding', 'utf-8', '--lang', 'en', '-d', 'en_US', '--mode', 'none'] >Context: @test_66_tmp_dir/test.txt (4) >Traceback (most recent call last): > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline > wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker > return get_process_output(process, encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output > raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors='replace'))) >RuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading. > > >b'dddd' >Command: ['/usr/bin/aspell', 'list', '--encoding', 'utf-8', '--lang', 'en', '-d', 'en_US', '--mode', 'none'] >Context: @test_66_tmp_dir/test.txt (5) >Traceback (most recent call last): > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline > wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker > return get_process_output(process, encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output > raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors='replace'))) >RuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading. > > >b'eeee' >Command: ['/usr/bin/aspell', 'list', '--encoding', 'utf-8', '--lang', 'en', '-d', 'en_US', '--mode', 'none'] >Context: @test_66_tmp_dir/test.txt (6) >Traceback (most recent call last): > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline > wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker > return get_process_output(process, encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output > raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors='replace'))) >RuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading. > > >___________________ TestCPPStringAllow.test_exclude_standard ___________________ > >self = <tests.filters.test_cpp.TestCPPStringAllow testMethod=test_exclude_standard> > > def test_exclude_standard(self): > """Test standard exclusion.""" > > config = self.dedent( > """ > matrix: > - name: cpp > sources: > - '{}/**/*.txt' > aspell: > lang: en > d: en_US > hunspell: > d: en_US > pipeline: > - pyspelling.filters.cpp: > strings: true > line_comments: false > group_comments: true > string_types: rul > """ > ).format(self.tempdir) > self.mktemp('.cpp.yml', config, 'utf-8') >> self.assert_spellcheck('.cpp.yml', ["bbbb", "cccc", "dddd", "eeee", "hhhh", "iiii", "jjjj", "kkkk"]) > >config = ('matrix:\n' > '- name: cpp\n' > ' sources:\n' > " - '@test_66_tmp_dir/**/*.txt'\n" > ' aspell:\n' > ' lang: en\n' > ' d: en_US\n' > ' hunspell:\n' > ' d: en_US\n' > ' pipeline:\n' > ' - pyspelling.filters.cpp:\n' > ' strings: true\n' > ' line_comments: false\n' > ' group_comments: true\n' > ' string_types: rul\n') >self = <tests.filters.test_cpp.TestCPPStringAllow testMethod=test_exclude_standard> > >tests/filters/test_cpp.py:254: >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ >tests/util.py:232: in assert_spellcheck > self.assertEqual(sorted(expected), sorted(list(words))) >E AssertionError: Lists differ: ['bbbb', 'cccc', 'dddd', 'eeee', 'hhhh', 'iiii', 'jjjj', 'kkkk'] != [] >E >E First list contains 8 additional elements. >E First extra element 0: >E 'bbbb' >E >E - ['bbbb', 'cccc', 'dddd', 'eeee', 'hhhh', 'iiii', 'jjjj', 'kkkk'] >E + [] > aspell_location = '/usr/bin/aspell' > config_file = '.cpp.yml' > expected = ['bbbb', 'cccc', 'dddd', 'eeee', 'hhhh', 'iiii', 'jjjj', 'kkkk'] > groups = None > hunspell_location = None > names = None > results = Results(words=[], context='@test_66_tmp_dir/test.txt (12)', category='cpp-string', error='Traceback (most recent call last):\n File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline\n wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding)\n File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker\n return get_process_output(process, encoding)\n File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output\n raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors=\'replace\')))\nRuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading.\n') > running = 'aspell' > self = <tests.filters.test_cpp.TestCPPStringAllow testMethod=test_exclude_standard> > sources = None > verbose = 4 > words = set() >----------------------------- Captured stdout call ----------------------------- >Using aspell to spellcheck cpp >Running Task: cpp... > >> Processing: @test_66_tmp_dir/test.txt > >b'bbbb' >Command: ['/usr/bin/aspell', 'list', '--encoding', 'utf-8', '--lang', 'en', '-d', 'en_US', '--mode', 'none'] >Context: @test_66_tmp_dir/test.txt (3) >Traceback (most recent call last): > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline > wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker > return get_process_output(process, encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output > raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors='replace'))) >RuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading. > > >b'cccc' >Command: ['/usr/bin/aspell', 'list', '--encoding', 'utf-8', '--lang', 'en', '-d', 'en_US', '--mode', 'none'] >Context: @test_66_tmp_dir/test.txt (4) >Traceback (most recent call last): > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline > wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker > return get_process_output(process, encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output > raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors='replace'))) >RuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading. > > >b'dddd' >Command: ['/usr/bin/aspell', 'list', '--encoding', 'utf-8', '--lang', 'en', '-d', 'en_US', '--mode', 'none'] >Context: @test_66_tmp_dir/test.txt (5) >Traceback (most recent call last): > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline > wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker > return get_process_output(process, encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output > raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors='replace'))) >RuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading. > > >b'eeee' >Command: ['/usr/bin/aspell', 'list', '--encoding', 'utf-8', '--lang', 'en', '-d', 'en_US', '--mode', 'none'] >Context: @test_66_tmp_dir/test.txt (6) >Traceback (most recent call last): > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline > wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker > return get_process_output(process, encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output > raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors='replace'))) >RuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading. > > >b'"hhhh"' >Command: ['/usr/bin/aspell', 'list', '--encoding', 'utf-8', '--lang', 'en', '-d', 'en_US', '--mode', 'none'] >Context: @test_66_tmp_dir/test.txt (9) >Traceback (most recent call last): > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline > wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker > return get_process_output(process, encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output > raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors='replace'))) >RuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading. > > >b'"iiii"' >Command: ['/usr/bin/aspell', 'list', '--encoding', 'utf-8', '--lang', 'en', '-d', 'en_US', '--mode', 'none'] >Context: @test_66_tmp_dir/test.txt (10) >Traceback (most recent call last): > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline > wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker > return get_process_output(process, encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output > raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors='replace'))) >RuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading. > > >b'"jjjj"' >Command: ['/usr/bin/aspell', 'list', '--encoding', 'utf-8', '--lang', 'en', '-d', 'en_US', '--mode', 'none'] >Context: @test_66_tmp_dir/test.txt (11) >Traceback (most recent call last): > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline > wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker > return get_process_output(process, encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output > raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors='replace'))) >RuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading. > > >b'"kkkk"' >Command: ['/usr/bin/aspell', 'list', '--encoding', 'utf-8', '--lang', 'en', '-d', 'en_US', '--mode', 'none'] >Context: @test_66_tmp_dir/test.txt (12) >Traceback (most recent call last): > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline > wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker > return get_process_output(process, encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output > raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors='replace'))) >RuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading. > > >___________________ TestCPPStringAllow.test_exclude_unicode ____________________ > >self = <tests.filters.test_cpp.TestCPPStringAllow testMethod=test_exclude_unicode> > > def test_exclude_unicode(self): > """Test Unicode exclusion.""" > > config = self.dedent( > """ > matrix: > - name: cpp > sources: > - '{}/**/*.txt' > aspell: > lang: en > d: en_US > hunspell: > d: en_US > pipeline: > - pyspelling.filters.cpp: > strings: true > line_comments: false > group_comments: true > string_types: rls > """ > ).format(self.tempdir) > self.mktemp('.cpp.yml', config, 'utf-8') >> self.assert_spellcheck('.cpp.yml', ["aaaa", "bbbb", "ffff", "gggg", "hhhh"]) > >config = ('matrix:\n' > '- name: cpp\n' > ' sources:\n' > " - '@test_66_tmp_dir/**/*.txt'\n" > ' aspell:\n' > ' lang: en\n' > ' d: en_US\n' > ' hunspell:\n' > ' d: en_US\n' > ' pipeline:\n' > ' - pyspelling.filters.cpp:\n' > ' strings: true\n' > ' line_comments: false\n' > ' group_comments: true\n' > ' string_types: rls\n') >self = <tests.filters.test_cpp.TestCPPStringAllow testMethod=test_exclude_unicode> > >tests/filters/test_cpp.py:204: >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ >tests/util.py:232: in assert_spellcheck > self.assertEqual(sorted(expected), sorted(list(words))) >E AssertionError: Lists differ: ['aaaa', 'bbbb', 'ffff', 'gggg', 'hhhh'] != [] >E >E First list contains 5 additional elements. >E First extra element 0: >E 'aaaa' >E >E - ['aaaa', 'bbbb', 'ffff', 'gggg', 'hhhh'] >E + [] > aspell_location = '/usr/bin/aspell' > config_file = '.cpp.yml' > expected = ['aaaa', 'bbbb', 'ffff', 'gggg', 'hhhh'] > groups = None > hunspell_location = None > names = None > results = Results(words=[], context='@test_66_tmp_dir/test.txt (9)', category='cpp-string', error='Traceback (most recent call last):\n File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline\n wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding)\n File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker\n return get_process_output(process, encoding)\n File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output\n raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors=\'replace\')))\nRuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading.\n') > running = 'aspell' > self = <tests.filters.test_cpp.TestCPPStringAllow testMethod=test_exclude_unicode> > sources = None > verbose = 4 > words = set() >----------------------------- Captured stdout call ----------------------------- >Using aspell to spellcheck cpp >Running Task: cpp... > >> Processing: @test_66_tmp_dir/test.txt > >b'aaaa' >Command: ['/usr/bin/aspell', 'list', '--encoding', 'utf-8', '--lang', 'en', '-d', 'en_US', '--mode', 'none'] >Context: @test_66_tmp_dir/test.txt (2) >Traceback (most recent call last): > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline > wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker > return get_process_output(process, encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output > raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors='replace'))) >RuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading. > > >b'bbbb' >Command: ['/usr/bin/aspell', 'list', '--encoding', 'utf-8', '--lang', 'en', '-d', 'en_US', '--mode', 'none'] >Context: @test_66_tmp_dir/test.txt (3) >Traceback (most recent call last): > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline > wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker > return get_process_output(process, encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output > raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors='replace'))) >RuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading. > > >b'"ffff"' >Command: ['/usr/bin/aspell', 'list', '--encoding', 'utf-8', '--lang', 'en', '-d', 'en_US', '--mode', 'none'] >Context: @test_66_tmp_dir/test.txt (7) >Traceback (most recent call last): > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline > wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker > return get_process_output(process, encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output > raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors='replace'))) >RuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading. > > >b'"gggg"' >Command: ['/usr/bin/aspell', 'list', '--encoding', 'utf-8', '--lang', 'en', '-d', 'en_US', '--mode', 'none'] >Context: @test_66_tmp_dir/test.txt (8) >Traceback (most recent call last): > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline > wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker > return get_process_output(process, encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output > raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors='replace'))) >RuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading. > > >b'"hhhh"' >Command: ['/usr/bin/aspell', 'list', '--encoding', 'utf-8', '--lang', 'en', '-d', 'en_US', '--mode', 'none'] >Context: @test_66_tmp_dir/test.txt (9) >Traceback (most recent call last): > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline > wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker > return get_process_output(process, encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output > raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors='replace'))) >RuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading. > > >_____________________ TestCPPStringAllow.test_exclude_wide _____________________ > >self = <tests.filters.test_cpp.TestCPPStringAllow testMethod=test_exclude_wide> > > def test_exclude_wide(self): > """Test wide exclusion.""" > > config = self.dedent( > """ > matrix: > - name: cpp > sources: > - '{}/**/*.txt' > aspell: > lang: en > d: en_US > hunspell: > d: en_US > pipeline: > - pyspelling.filters.cpp: > strings: true > line_comments: false > group_comments: true > string_types: rus > """ > ).format(self.tempdir) > self.mktemp('.cpp.yml', config, 'utf-8') >> self.assert_spellcheck('.cpp.yml', ["aaaa", "cccc", "dddd", "eeee", "ffff", "gggg", "iiii", "jjjj", "kkkk"]) > >config = ('matrix:\n' > '- name: cpp\n' > ' sources:\n' > " - '@test_66_tmp_dir/**/*.txt'\n" > ' aspell:\n' > ' lang: en\n' > ' d: en_US\n' > ' hunspell:\n' > ' d: en_US\n' > ' pipeline:\n' > ' - pyspelling.filters.cpp:\n' > ' strings: true\n' > ' line_comments: false\n' > ' group_comments: true\n' > ' string_types: rus\n') >self = <tests.filters.test_cpp.TestCPPStringAllow testMethod=test_exclude_wide> > >tests/filters/test_cpp.py:229: >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ >tests/util.py:232: in assert_spellcheck > self.assertEqual(sorted(expected), sorted(list(words))) >E AssertionError: Lists differ: ['aaaa', 'cccc', 'dddd', 'eeee', 'ffff', 'gggg', 'iiii', 'jjjj', 'kkkk'] != [] >E >E First list contains 9 additional elements. >E First extra element 0: >E 'aaaa' >E >E - ['aaaa', 'cccc', 'dddd', 'eeee', 'ffff', 'gggg', 'iiii', 'jjjj', 'kkkk'] >E + [] > aspell_location = '/usr/bin/aspell' > config_file = '.cpp.yml' > expected = ['aaaa', 'cccc', 'dddd', 'eeee', 'ffff', 'gggg', 'iiii', 'jjjj', 'kkkk'] > groups = None > hunspell_location = None > names = None > results = Results(words=[], context='@test_66_tmp_dir/test.txt (12)', category='cpp-string', error='Traceback (most recent call last):\n File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline\n wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding)\n File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker\n return get_process_output(process, encoding)\n File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output\n raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors=\'replace\')))\nRuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading.\n') > running = 'aspell' > self = <tests.filters.test_cpp.TestCPPStringAllow testMethod=test_exclude_wide> > sources = None > verbose = 4 > words = set() >----------------------------- Captured stdout call ----------------------------- >Using aspell to spellcheck cpp >Running Task: cpp... > >> Processing: @test_66_tmp_dir/test.txt > >b'aaaa' >Command: ['/usr/bin/aspell', 'list', '--encoding', 'utf-8', '--lang', 'en', '-d', 'en_US', '--mode', 'none'] >Context: @test_66_tmp_dir/test.txt (2) >Traceback (most recent call last): > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline > wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker > return get_process_output(process, encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output > raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors='replace'))) >RuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading. > > >b'cccc' >Command: ['/usr/bin/aspell', 'list', '--encoding', 'utf-8', '--lang', 'en', '-d', 'en_US', '--mode', 'none'] >Context: @test_66_tmp_dir/test.txt (4) >Traceback (most recent call last): > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline > wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker > return get_process_output(process, encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output > raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors='replace'))) >RuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading. > > >b'dddd' >Command: ['/usr/bin/aspell', 'list', '--encoding', 'utf-8', '--lang', 'en', '-d', 'en_US', '--mode', 'none'] >Context: @test_66_tmp_dir/test.txt (5) >Traceback (most recent call last): > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline > wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker > return get_process_output(process, encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output > raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors='replace'))) >RuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading. > > >b'eeee' >Command: ['/usr/bin/aspell', 'list', '--encoding', 'utf-8', '--lang', 'en', '-d', 'en_US', '--mode', 'none'] >Context: @test_66_tmp_dir/test.txt (6) >Traceback (most recent call last): > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline > wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker > return get_process_output(process, encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output > raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors='replace'))) >RuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading. > > >b'"ffff"' >Command: ['/usr/bin/aspell', 'list', '--encoding', 'utf-8', '--lang', 'en', '-d', 'en_US', '--mode', 'none'] >Context: @test_66_tmp_dir/test.txt (7) >Traceback (most recent call last): > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline > wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker > return get_process_output(process, encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output > raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors='replace'))) >RuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading. > > >b'"gggg"' >Command: ['/usr/bin/aspell', 'list', '--encoding', 'utf-8', '--lang', 'en', '-d', 'en_US', '--mode', 'none'] >Context: @test_66_tmp_dir/test.txt (8) >Traceback (most recent call last): > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline > wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker > return get_process_output(process, encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output > raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors='replace'))) >RuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading. > > >b'"iiii"' >Command: ['/usr/bin/aspell', 'list', '--encoding', 'utf-8', '--lang', 'en', '-d', 'en_US', '--mode', 'none'] >Context: @test_66_tmp_dir/test.txt (10) >Traceback (most recent call last): > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline > wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker > return get_process_output(process, encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output > raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors='replace'))) >RuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading. > > >b'"jjjj"' >Command: ['/usr/bin/aspell', 'list', '--encoding', 'utf-8', '--lang', 'en', '-d', 'en_US', '--mode', 'none'] >Context: @test_66_tmp_dir/test.txt (11) >Traceback (most recent call last): > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline > wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker > return get_process_output(process, encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output > raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors='replace'))) >RuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading. > > >b'"kkkk"' >Command: ['/usr/bin/aspell', 'list', '--encoding', 'utf-8', '--lang', 'en', '-d', 'en_US', '--mode', 'none'] >Context: @test_66_tmp_dir/test.txt (12) >Traceback (most recent call last): > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline > wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker > return get_process_output(process, encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output > raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors='replace'))) >RuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading. > > >_____________________ TestCPPStringAllow.test_include_all ______________________ > >self = <tests.filters.test_cpp.TestCPPStringAllow testMethod=test_include_all> > > def test_include_all(self): > """Test standard exclusion.""" > > config = self.dedent( > """ > matrix: > - name: cpp > sources: > - '{}/**/*.txt' > aspell: > lang: en > d: en_US > hunspell: > d: en_US > pipeline: > - pyspelling.filters.cpp: > strings: true > line_comments: false > group_comments: true > string_types: '*' > """ > ).format(self.tempdir) > self.mktemp('.cpp.yml', config, 'utf-8') >> self.assert_spellcheck( > '.cpp.yml', > ["aaaa", "bbbb", "cccc", "dddd", "eeee", "ffff", "gggg", "hhhh", "iiii", "jjjj", "kkkk"] > ) > >config = ('matrix:\n' > '- name: cpp\n' > ' sources:\n' > " - '@test_66_tmp_dir/**/*.txt'\n" > ' aspell:\n' > ' lang: en\n' > ' d: en_US\n' > ' hunspell:\n' > ' d: en_US\n' > ' pipeline:\n' > ' - pyspelling.filters.cpp:\n' > ' strings: true\n' > ' line_comments: false\n' > ' group_comments: true\n' > " string_types: '*'\n") >self = <tests.filters.test_cpp.TestCPPStringAllow testMethod=test_include_all> > >tests/filters/test_cpp.py:279: >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ >tests/util.py:232: in assert_spellcheck > self.assertEqual(sorted(expected), sorted(list(words))) >E AssertionError: Lists differ: ['aaaa', 'bbbb', 'cccc', 'dddd', 'eeee', '[41 chars]kkk'] != [] >E >E First list contains 11 additional elements. >E First extra element 0: >E 'aaaa' >E >E + [] >E - ['aaaa', >E - 'bbbb', >E - 'cccc', >E - 'dddd', >E - 'eeee', >E - 'ffff', >E - 'gggg', >E - 'hhhh', >E - 'iiii', >E - 'jjjj', >E - 'kkkk'] > aspell_location = '/usr/bin/aspell' > config_file = '.cpp.yml' > expected = ['aaaa', > 'bbbb', > 'cccc', > 'dddd', > 'eeee', > 'ffff', > 'gggg', > 'hhhh', > 'iiii', > 'jjjj', > 'kkkk'] > groups = None > hunspell_location = None > names = None > results = Results(words=[], context='@test_66_tmp_dir/test.txt (12)', category='cpp-string', error='Traceback (most recent call last):\n File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline\n wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding)\n File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker\n return get_process_output(process, encoding)\n File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output\n raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors=\'replace\')))\nRuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading.\n') > running = 'aspell' > self = <tests.filters.test_cpp.TestCPPStringAllow testMethod=test_include_all> > sources = None > verbose = 4 > words = set() >----------------------------- Captured stdout call ----------------------------- >Using aspell to spellcheck cpp >Running Task: cpp... > >> Processing: @test_66_tmp_dir/test.txt > >b'aaaa' >Command: ['/usr/bin/aspell', 'list', '--encoding', 'utf-8', '--lang', 'en', '-d', 'en_US', '--mode', 'none'] >Context: @test_66_tmp_dir/test.txt (2) >Traceback (most recent call last): > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline > wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker > return get_process_output(process, encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output > raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors='replace'))) >RuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading. > > >b'bbbb' >Command: ['/usr/bin/aspell', 'list', '--encoding', 'utf-8', '--lang', 'en', '-d', 'en_US', '--mode', 'none'] >Context: @test_66_tmp_dir/test.txt (3) >Traceback (most recent call last): > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline > wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker > return get_process_output(process, encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output > raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors='replace'))) >RuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading. > > >b'cccc' >Command: ['/usr/bin/aspell', 'list', '--encoding', 'utf-8', '--lang', 'en', '-d', 'en_US', '--mode', 'none'] >Context: @test_66_tmp_dir/test.txt (4) >Traceback (most recent call last): > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline > wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker > return get_process_output(process, encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output > raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors='replace'))) >RuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading. > > >b'dddd' >Command: ['/usr/bin/aspell', 'list', '--encoding', 'utf-8', '--lang', 'en', '-d', 'en_US', '--mode', 'none'] >Context: @test_66_tmp_dir/test.txt (5) >Traceback (most recent call last): > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline > wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker > return get_process_output(process, encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output > raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors='replace'))) >RuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading. > > >b'eeee' >Command: ['/usr/bin/aspell', 'list', '--encoding', 'utf-8', '--lang', 'en', '-d', 'en_US', '--mode', 'none'] >Context: @test_66_tmp_dir/test.txt (6) >Traceback (most recent call last): > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline > wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker > return get_process_output(process, encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output > raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors='replace'))) >RuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading. > > >b'"ffff"' >Command: ['/usr/bin/aspell', 'list', '--encoding', 'utf-8', '--lang', 'en', '-d', 'en_US', '--mode', 'none'] >Context: @test_66_tmp_dir/test.txt (7) >Traceback (most recent call last): > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline > wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker > return get_process_output(process, encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output > raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors='replace'))) >RuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading. > > >b'"gggg"' >Command: ['/usr/bin/aspell', 'list', '--encoding', 'utf-8', '--lang', 'en', '-d', 'en_US', '--mode', 'none'] >Context: @test_66_tmp_dir/test.txt (8) >Traceback (most recent call last): > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline > wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker > return get_process_output(process, encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output > raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors='replace'))) >RuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading. > > >b'"hhhh"' >Command: ['/usr/bin/aspell', 'list', '--encoding', 'utf-8', '--lang', 'en', '-d', 'en_US', '--mode', 'none'] >Context: @test_66_tmp_dir/test.txt (9) >Traceback (most recent call last): > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline > wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker > return get_process_output(process, encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output > raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors='replace'))) >RuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading. > > >b'"iiii"' >Command: ['/usr/bin/aspell', 'list', '--encoding', 'utf-8', '--lang', 'en', '-d', 'en_US', '--mode', 'none'] >Context: @test_66_tmp_dir/test.txt (10) >Traceback (most recent call last): > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline > wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker > return get_process_output(process, encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output > raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors='replace'))) >RuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading. > > >b'"jjjj"' >Command: ['/usr/bin/aspell', 'list', '--encoding', 'utf-8', '--lang', 'en', '-d', 'en_US', '--mode', 'none'] >Context: @test_66_tmp_dir/test.txt (11) >Traceback (most recent call last): > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline > wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker > return get_process_output(process, encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output > raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors='replace'))) >RuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading. > > >b'"kkkk"' >Command: ['/usr/bin/aspell', 'list', '--encoding', 'utf-8', '--lang', 'en', '-d', 'en_US', '--mode', 'none'] >Context: @test_66_tmp_dir/test.txt (12) >Traceback (most recent call last): > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline > wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker > return get_process_output(process, encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output > raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors='replace'))) >RuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading. > > >___________________ TestCPPStringAllow.test_include_all_raw ____________________ > >self = <tests.filters.test_cpp.TestCPPStringAllow testMethod=test_include_all_raw> > > def test_include_all_raw(self): > """Test standard exclusion.""" > > config = self.dedent( > """ > matrix: > - name: cpp > sources: > - '{}/**/*.txt' > aspell: > lang: en > d: en_US > hunspell: > d: en_US > pipeline: > - pyspelling.filters.cpp: > strings: true > line_comments: false > group_comments: true > string_types: 'r*' > """ > ).format(self.tempdir) > self.mktemp('.cpp.yml', config, 'utf-8') >> self.assert_spellcheck( > '.cpp.yml', > ["ffff", "gggg", "hhhh", "iiii", "jjjj", "kkkk"] > ) > >config = ('matrix:\n' > '- name: cpp\n' > ' sources:\n' > " - '@test_66_tmp_dir/**/*.txt'\n" > ' aspell:\n' > ' lang: en\n' > ' d: en_US\n' > ' hunspell:\n' > ' d: en_US\n' > ' pipeline:\n' > ' - pyspelling.filters.cpp:\n' > ' strings: true\n' > ' line_comments: false\n' > ' group_comments: true\n' > " string_types: 'r*'\n") >self = <tests.filters.test_cpp.TestCPPStringAllow testMethod=test_include_all_raw> > >tests/filters/test_cpp.py:307: >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ >tests/util.py:232: in assert_spellcheck > self.assertEqual(sorted(expected), sorted(list(words))) >E AssertionError: Lists differ: ['ffff', 'gggg', 'hhhh', 'iiii', 'jjjj', 'kkkk'] != [] >E >E First list contains 6 additional elements. >E First extra element 0: >E 'ffff' >E >E - ['ffff', 'gggg', 'hhhh', 'iiii', 'jjjj', 'kkkk'] >E + [] > aspell_location = '/usr/bin/aspell' > config_file = '.cpp.yml' > expected = ['ffff', 'gggg', 'hhhh', 'iiii', 'jjjj', 'kkkk'] > groups = None > hunspell_location = None > names = None > results = Results(words=[], context='@test_66_tmp_dir/test.txt (12)', category='cpp-string', error='Traceback (most recent call last):\n File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline\n wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding)\n File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker\n return get_process_output(process, encoding)\n File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output\n raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors=\'replace\')))\nRuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading.\n') > running = 'aspell' > self = <tests.filters.test_cpp.TestCPPStringAllow testMethod=test_include_all_raw> > sources = None > verbose = 4 > words = set() >----------------------------- Captured stdout call ----------------------------- >Using aspell to spellcheck cpp >Running Task: cpp... > >> Processing: @test_66_tmp_dir/test.txt > >b'"ffff"' >Command: ['/usr/bin/aspell', 'list', '--encoding', 'utf-8', '--lang', 'en', '-d', 'en_US', '--mode', 'none'] >Context: @test_66_tmp_dir/test.txt (7) >Traceback (most recent call last): > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline > wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker > return get_process_output(process, encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output > raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors='replace'))) >RuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading. > > >b'"gggg"' >Command: ['/usr/bin/aspell', 'list', '--encoding', 'utf-8', '--lang', 'en', '-d', 'en_US', '--mode', 'none'] >Context: @test_66_tmp_dir/test.txt (8) >Traceback (most recent call last): > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline > wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker > return get_process_output(process, encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output > raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors='replace'))) >RuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading. > > >b'"hhhh"' >Command: ['/usr/bin/aspell', 'list', '--encoding', 'utf-8', '--lang', 'en', '-d', 'en_US', '--mode', 'none'] >Context: @test_66_tmp_dir/test.txt (9) >Traceback (most recent call last): > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline > wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker > return get_process_output(process, encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output > raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors='replace'))) >RuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading. > > >b'"iiii"' >Command: ['/usr/bin/aspell', 'list', '--encoding', 'utf-8', '--lang', 'en', '-d', 'en_US', '--mode', 'none'] >Context: @test_66_tmp_dir/test.txt (10) >Traceback (most recent call last): > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline > wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker > return get_process_output(process, encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output > raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors='replace'))) >RuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading. > > >b'"jjjj"' >Command: ['/usr/bin/aspell', 'list', '--encoding', 'utf-8', '--lang', 'en', '-d', 'en_US', '--mode', 'none'] >Context: @test_66_tmp_dir/test.txt (11) >Traceback (most recent call last): > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline > wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker > return get_process_output(process, encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output > raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors='replace'))) >RuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading. > > >b'"kkkk"' >Command: ['/usr/bin/aspell', 'list', '--encoding', 'utf-8', '--lang', 'en', '-d', 'en_US', '--mode', 'none'] >Context: @test_66_tmp_dir/test.txt (12) >Traceback (most recent call last): > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline > wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker > return get_process_output(process, encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output > raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors='replace'))) >RuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading. > > >_________________ TestCPPStringAllow.test_include_all_unicode __________________ > >self = <tests.filters.test_cpp.TestCPPStringAllow testMethod=test_include_all_unicode> > > def test_include_all_unicode(self): > """Test standard exclusion.""" > > config = self.dedent( > """ > matrix: > - name: cpp > sources: > - '{}/**/*.txt' > aspell: > lang: en > d: en_US > hunspell: > d: en_US > pipeline: > - pyspelling.filters.cpp: > strings: true > line_comments: false > group_comments: true > string_types: 'u*' > """ > ).format(self.tempdir) > self.mktemp('.cpp.yml', config, 'utf-8') >> self.assert_spellcheck( > '.cpp.yml', > ["cccc", "dddd", "eeee", "iiii", "jjjj", "kkkk"] > ) > >config = ('matrix:\n' > '- name: cpp\n' > ' sources:\n' > " - '@test_66_tmp_dir/**/*.txt'\n" > ' aspell:\n' > ' lang: en\n' > ' d: en_US\n' > ' hunspell:\n' > ' d: en_US\n' > ' pipeline:\n' > ' - pyspelling.filters.cpp:\n' > ' strings: true\n' > ' line_comments: false\n' > ' group_comments: true\n' > " string_types: 'u*'\n") >self = <tests.filters.test_cpp.TestCPPStringAllow testMethod=test_include_all_unicode> > >tests/filters/test_cpp.py:335: >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ >tests/util.py:232: in assert_spellcheck > self.assertEqual(sorted(expected), sorted(list(words))) >E AssertionError: Lists differ: ['cccc', 'dddd', 'eeee', 'iiii', 'jjjj', 'kkkk'] != [] >E >E First list contains 6 additional elements. >E First extra element 0: >E 'cccc' >E >E - ['cccc', 'dddd', 'eeee', 'iiii', 'jjjj', 'kkkk'] >E + [] > aspell_location = '/usr/bin/aspell' > config_file = '.cpp.yml' > expected = ['cccc', 'dddd', 'eeee', 'iiii', 'jjjj', 'kkkk'] > groups = None > hunspell_location = None > names = None > results = Results(words=[], context='@test_66_tmp_dir/test.txt (12)', category='cpp-string', error='Traceback (most recent call last):\n File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline\n wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding)\n File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker\n return get_process_output(process, encoding)\n File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output\n raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors=\'replace\')))\nRuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading.\n') > running = 'aspell' > self = <tests.filters.test_cpp.TestCPPStringAllow testMethod=test_include_all_unicode> > sources = None > verbose = 4 > words = set() >----------------------------- Captured stdout call ----------------------------- >Using aspell to spellcheck cpp >Running Task: cpp... > >> Processing: @test_66_tmp_dir/test.txt > >b'cccc' >Command: ['/usr/bin/aspell', 'list', '--encoding', 'utf-8', '--lang', 'en', '-d', 'en_US', '--mode', 'none'] >Context: @test_66_tmp_dir/test.txt (4) >Traceback (most recent call last): > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline > wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker > return get_process_output(process, encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output > raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors='replace'))) >RuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading. > > >b'dddd' >Command: ['/usr/bin/aspell', 'list', '--encoding', 'utf-8', '--lang', 'en', '-d', 'en_US', '--mode', 'none'] >Context: @test_66_tmp_dir/test.txt (5) >Traceback (most recent call last): > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline > wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker > return get_process_output(process, encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output > raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors='replace'))) >RuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading. > > >b'eeee' >Command: ['/usr/bin/aspell', 'list', '--encoding', 'utf-8', '--lang', 'en', '-d', 'en_US', '--mode', 'none'] >Context: @test_66_tmp_dir/test.txt (6) >Traceback (most recent call last): > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline > wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker > return get_process_output(process, encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output > raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors='replace'))) >RuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading. > > >b'"iiii"' >Command: ['/usr/bin/aspell', 'list', '--encoding', 'utf-8', '--lang', 'en', '-d', 'en_US', '--mode', 'none'] >Context: @test_66_tmp_dir/test.txt (10) >Traceback (most recent call last): > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline > wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker > return get_process_output(process, encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output > raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors='replace'))) >RuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading. > > >b'"jjjj"' >Command: ['/usr/bin/aspell', 'list', '--encoding', 'utf-8', '--lang', 'en', '-d', 'en_US', '--mode', 'none'] >Context: @test_66_tmp_dir/test.txt (11) >Traceback (most recent call last): > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline > wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker > return get_process_output(process, encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output > raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors='replace'))) >RuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading. > > >b'"kkkk"' >Command: ['/usr/bin/aspell', 'list', '--encoding', 'utf-8', '--lang', 'en', '-d', 'en_US', '--mode', 'none'] >Context: @test_66_tmp_dir/test.txt (12) >Traceback (most recent call last): > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline > wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker > return get_process_output(process, encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output > raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors='replace'))) >RuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading. > > >_______________________ TestCPPStrings.test_cpp_strings ________________________ > >self = <tests.filters.test_cpp.TestCPPStrings testMethod=test_cpp_strings> > > def test_cpp_strings(self): > """Test CPP strings.""" > > bad_char = ['helo', 'begn'] > bad_wchar = ['flga', 'graet'] > bad_u8 = ['recieve', 'teh'] > bad_u16 = ['acept', 'thruogh'] > bad_u32 = ['hpoe', 'lvoe'] > bad_raw = ['aaaa', 'bbbb'] > bad_raw_delim = ['cccc', 'dddd'] > bad_raw_wide = ['eeee', 'ffff'] > bad_raw_u8 = ['gggg', 'hhhh'] > bad_raw_u16 = ['iiii', 'jjjj'] > bad_raw_u32 = ['kkkk', 'llll'] > > bad_words = ( > bad_char + bad_wchar + bad_u8 + bad_u16 + bad_u32 + bad_raw + bad_raw_wide + > bad_raw_delim + bad_raw_u8 + bad_raw_u16 + bad_raw_u32 > ) > good_words = ['yes', 'word'] > template = self.dedent( > r""" > uint8_t func() {{ > auto c0 = 'xxxx'; // char > auto s0 = "{}"; // char > auto s1 = L"{}"; // wchar_t > auto s2 = u8"{}"; // char > auto s3 = u"{}"; // char16_t > auto s4 = U"{}"; // char32_t > auto R0 = R"("{}")"; // const char* > auto R1 = R"delim("{}")delim"; // const char* > auto R3 = LR"("{}")"; // const wchar_t* > auto R4 = u8R"("{}")"; // const char*, encoded as UTF-8 > auto R5 = uR"("{}")"; // const char16_t*, encoded as UTF-16 > auto R6 = UR"("{}")"; // const char32_t*, encoded as UTF-32 > }} > """ > ).format( > ' '.join(bad_char + good_words), > ' '.join(bad_wchar + good_words), > ' '.join(bad_u8 + good_words), > ' '.join(bad_u16 + good_words), > ' '.join(bad_u32 + good_words), > ' '.join(bad_raw + good_words), > ' '.join(bad_raw_delim + good_words), > ' '.join(bad_raw_wide + good_words), > ' '.join(bad_raw_u8 + good_words), > ' '.join(bad_raw_u16 + good_words), > ' '.join(bad_raw_u32 + good_words) > ) > > self.mktemp('test.txt', template, 'utf-8') >> self.assert_spellcheck('.cpp.yml', bad_words) > >bad_char = ['helo', 'begn'] >bad_raw = ['aaaa', 'bbbb'] >bad_raw_delim = ['cccc', 'dddd'] >bad_raw_u16 = ['iiii', 'jjjj'] >bad_raw_u32 = ['kkkk', 'llll'] >bad_raw_u8 = ['gggg', 'hhhh'] >bad_raw_wide = ['eeee', 'ffff'] >bad_u16 = ['acept', 'thruogh'] >bad_u32 = ['hpoe', 'lvoe'] >bad_u8 = ['recieve', 'teh'] >bad_wchar = ['flga', 'graet'] >bad_words = ['helo', > 'begn', > 'flga', > 'graet', > 'recieve', > 'teh', > 'acept', > 'thruogh', > 'hpoe', > 'lvoe', > 'aaaa', > 'bbbb', > 'eeee', > 'ffff', > 'cccc', > 'dddd', > 'gggg', > 'hhhh', > 'iiii', > 'jjjj', > 'kkkk', > 'llll'] >good_words = ['yes', 'word'] >self = <tests.filters.test_cpp.TestCPPStrings testMethod=test_cpp_strings> >template = ('uint8_t func() {\n' > " auto c0 = 'xxxx'; // char\n" > ' auto s0 = "helo begn yes word"; // char\n' > ' auto s1 = L"flga graet yes word"; // wchar_t\n' > ' auto s2 = u8"recieve teh yes word"; // char\n' > ' auto s3 = u"acept thruogh yes word"; // char16_t\n' > ' auto s4 = U"hpoe lvoe yes word"; // char32_t\n' > ' auto R0 = R"("aaaa bbbb yes word")"; // const char*\n' > ' auto R1 = R"delim("cccc dddd yes word")delim"; // const char*\n' > ' auto R3 = LR"("eeee ffff yes word")"; // const wchar_t*\n' > ' auto R4 = u8R"("gggg hhhh yes word")"; // const char*, encoded as UTF-8\n' > ' auto R5 = uR"("iiii jjjj yes word")"; // const char16_t*, encoded as ' > 'UTF-16\n' > ' auto R6 = UR"("kkkk llll yes word")"; // const char32_t*, encoded as ' > 'UTF-32\n' > '}\n') > >tests/filters/test_cpp.py:420: >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ >tests/util.py:232: in assert_spellcheck > self.assertEqual(sorted(expected), sorted(list(words))) >E AssertionError: Lists differ: ['aaaa', 'acept', 'bbbb', 'begn', 'cccc', [136 chars]ogh'] != [] >E >E First list contains 22 additional elements. >E First extra element 0: >E 'aaaa' >E >E + [] >E - ['aaaa', >E - 'acept', >E - 'bbbb', >E - 'begn', >E - 'cccc', >E - 'dddd', >E - 'eeee', >E - 'ffff', >E - 'flga', >E - 'gggg', >E - 'graet', >E - 'helo', >E - 'hhhh', >E - 'hpoe', >E - 'iiii', >E - 'jjjj', >E - 'kkkk', >E - 'llll', >E - 'lvoe', >E - 'recieve', >E - 'teh', >E - 'thruogh'] > aspell_location = '/usr/bin/aspell' > config_file = '.cpp.yml' > expected = ['helo', > 'begn', > 'flga', > 'graet', > 'recieve', > 'teh', > 'acept', > 'thruogh', > 'hpoe', > 'lvoe', > 'aaaa', > 'bbbb', > 'eeee', > 'ffff', > 'cccc', > 'dddd', > 'gggg', > 'hhhh', > 'iiii', > 'jjjj', > 'kkkk', > 'llll'] > groups = None > hunspell_location = None > names = None > results = Results(words=[], context='@test_66_tmp_dir/test.txt (13)', category='cpp-string', error='Traceback (most recent call last):\n File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline\n wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding)\n File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker\n return get_process_output(process, encoding)\n File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output\n raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors=\'replace\')))\nRuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading.\n') > running = 'aspell' > self = <tests.filters.test_cpp.TestCPPStrings testMethod=test_cpp_strings> > sources = None > verbose = 4 > words = set() >----------------------------- Captured stdout call ----------------------------- >Using aspell to spellcheck cpp >Running Task: cpp... > >> Processing: @test_66_tmp_dir/test.txt > >b'helo begn yes word' >Command: ['/usr/bin/aspell', 'list', '--encoding', 'utf-8', '--lang', 'en', '-d', 'en_US', '--mode', 'none'] >Context: @test_66_tmp_dir/test.txt (3) >Traceback (most recent call last): > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline > wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker > return get_process_output(process, encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output > raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors='replace'))) >RuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading. > > >b'flga graet yes word' >Command: ['/usr/bin/aspell', 'list', '--encoding', 'utf-8', '--lang', 'en', '-d', 'en_US', '--mode', 'none'] >Context: @test_66_tmp_dir/test.txt (4) >Traceback (most recent call last): > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline > wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker > return get_process_output(process, encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output > raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors='replace'))) >RuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading. > > >b'recieve teh yes word' >Command: ['/usr/bin/aspell', 'list', '--encoding', 'utf-8', '--lang', 'en', '-d', 'en_US', '--mode', 'none'] >Context: @test_66_tmp_dir/test.txt (5) >Traceback (most recent call last): > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline > wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker > return get_process_output(process, encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output > raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors='replace'))) >RuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading. > > >b'acept thruogh yes word' >Command: ['/usr/bin/aspell', 'list', '--encoding', 'utf-8', '--lang', 'en', '-d', 'en_US', '--mode', 'none'] >Context: @test_66_tmp_dir/test.txt (6) >Traceback (most recent call last): > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline > wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker > return get_process_output(process, encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output > raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors='replace'))) >RuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading. > > >b'hpoe lvoe yes word' >Command: ['/usr/bin/aspell', 'list', '--encoding', 'utf-8', '--lang', 'en', '-d', 'en_US', '--mode', 'none'] >Context: @test_66_tmp_dir/test.txt (7) >Traceback (most recent call last): > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline > wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker > return get_process_output(process, encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output > raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors='replace'))) >RuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading. > > >b'"aaaa bbbb yes word"' >Command: ['/usr/bin/aspell', 'list', '--encoding', 'utf-8', '--lang', 'en', '-d', 'en_US', '--mode', 'none'] >Context: @test_66_tmp_dir/test.txt (8) >Traceback (most recent call last): > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline > wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker > return get_process_output(process, encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output > raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors='replace'))) >RuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading. > > >b'"cccc dddd yes word"' >Command: ['/usr/bin/aspell', 'list', '--encoding', 'utf-8', '--lang', 'en', '-d', 'en_US', '--mode', 'none'] >Context: @test_66_tmp_dir/test.txt (9) >Traceback (most recent call last): > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline > wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker > return get_process_output(process, encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output > raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors='replace'))) >RuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading. > > >b'"eeee ffff yes word"' >Command: ['/usr/bin/aspell', 'list', '--encoding', 'utf-8', '--lang', 'en', '-d', 'en_US', '--mode', 'none'] >Context: @test_66_tmp_dir/test.txt (10) >Traceback (most recent call last): > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline > wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker > return get_process_output(process, encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output > raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors='replace'))) >RuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading. > > >b'"gggg hhhh yes word"' >Command: ['/usr/bin/aspell', 'list', '--encoding', 'utf-8', '--lang', 'en', '-d', 'en_US', '--mode', 'none'] >Context: @test_66_tmp_dir/test.txt (11) >Traceback (most recent call last): > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline > wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker > return get_process_output(process, encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output > raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors='replace'))) >RuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading. > > >b'"iiii jjjj yes word"' >Command: ['/usr/bin/aspell', 'list', '--encoding', 'utf-8', '--lang', 'en', '-d', 'en_US', '--mode', 'none'] >Context: @test_66_tmp_dir/test.txt (12) >Traceback (most recent call last): > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline > wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker > return get_process_output(process, encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output > raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors='replace'))) >RuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading. > > >b'"kkkk llll yes word"' >Command: ['/usr/bin/aspell', 'list', '--encoding', 'utf-8', '--lang', 'en', '-d', 'en_US', '--mode', 'none'] >Context: @test_66_tmp_dir/test.txt (13) >Traceback (most recent call last): > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline > wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker > return get_process_output(process, encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output > raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors='replace'))) >RuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading. > > >___________________ TestCPPStrings.test_cpp_strings_escapes ____________________ > >self = <tests.filters.test_cpp.TestCPPStrings testMethod=test_cpp_strings_escapes> > > def test_cpp_strings_escapes(self): > """Test CPP strings escapes.""" > > template = self.dedent( > r""" > uint8_t func() {{ > auto s0 = "\x61gggg\141 \ntext\ > \u0061yyyy \\ubbbb"; // char > auto s1 = L"\x0061hhhh \ntexts"; // wchar_t > auto s2 = u8"\141\x000000061\u0061\U00000061"; // char > auto s3 = u"\142\x000000062\u0062\U00000062"; // char16_t > auto s4 = U"\143\x000000063\u0063\U00000063"; // char32_t > auto R0 = R"("\xaa \nbad")"; // const char* > auto R1 = R"delim("\xbb > \vbad")delim"; // const char* > auto R3 = LR"("\xcc")"; // const wchar_t* > auto R4 = u8R"("\xdd")"; // const char*, encoded as UTF-8 > auto R5 = uR"("\xee")"; // const char16_t*, encoded as UTF-16 > auto R6 = UR"("\xff")"; // const char32_t*, encoded as UTF-32 > }} > """ > ) > > # `char*` and `wchar*` will have escapes `\x`, `\u`, and `\U` stripped out as we don't know the encoding. > # Unicode strings will have all escapes decoded. > # Raw will decode none. > bad_words = [ > 'agggga', 'ahhhh', 'ayyyy', 'aaaa', 'bbbb', 'cccc', > 'xaa', 'xbb', 'xcc', 'xdd', 'xee', 'xff', > 'ubbbb', 'nbad', 'vbad' > ] > > self.mktemp('test.txt', template, 'utf-8') >> self.assert_spellcheck('.cpp.yml', bad_words) > >bad_words = ['agggga', > 'ahhhh', > 'ayyyy', > 'aaaa', > 'bbbb', > 'cccc', > 'xaa', > 'xbb', > 'xcc', > 'xdd', > 'xee', > 'xff', > 'ubbbb', > 'nbad', > 'vbad'] >self = <tests.filters.test_cpp.TestCPPStrings testMethod=test_cpp_strings_escapes> >template = ('uint8_t func() {{\n' > ' auto s0 = "\\x61gggg\\141 \\ntext\\\n' > ' \\u0061yyyy \\\\ubbbb"; // char\n' > ' auto s1 = L"\\x0061hhhh \\ntexts"; // wchar_t\n' > ' auto s2 = u8"\\141\\x000000061\\u0061\\U00000061"; // char\n' > ' auto s3 = u"\\142\\x000000062\\u0062\\U00000062"; // char16_t\n' > ' auto s4 = U"\\143\\x000000063\\u0063\\U00000063"; // char32_t\n' > ' auto R0 = R"("\\xaa \\nbad")"; // const char*\n' > ' auto R1 = R"delim("\\xbb\n' > ' \\vbad")delim"; // const char*\n' > ' auto R3 = LR"("\\xcc")"; // const wchar_t*\n' > ' auto R4 = u8R"("\\xdd")"; // const char*, encoded as UTF-8\n' > ' auto R5 = uR"("\\xee")"; // const char16_t*, encoded as UTF-16\n' > ' auto R6 = UR"("\\xff")"; // const char32_t*, encoded as UTF-32\n' > '}}\n') > >tests/filters/test_cpp.py:455: >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ >tests/util.py:232: in assert_spellcheck > self.assertEqual(sorted(expected), sorted(list(words))) >E AssertionError: Lists differ: ['aaaa', 'agggga', 'ahhhh', 'ayyyy', 'bbbb[72 chars]xff'] != [] >E >E First list contains 15 additional elements. >E First extra element 0: >E 'aaaa' >E >E + [] >E - ['aaaa', >E - 'agggga', >E - 'ahhhh', >E - 'ayyyy', >E - 'bbbb', >E - 'cccc', >E - 'nbad', >E - 'ubbbb', >E - 'vbad', >E - 'xaa', >E - 'xbb', >E - 'xcc', >E - 'xdd', >E - 'xee', >E - 'xff'] > aspell_location = '/usr/bin/aspell' > config_file = '.cpp.yml' > expected = ['agggga', > 'ahhhh', > 'ayyyy', > 'aaaa', > 'bbbb', > 'cccc', > 'xaa', > 'xbb', > 'xcc', > 'xdd', > 'xee', > 'xff', > 'ubbbb', > 'nbad', > 'vbad'] > groups = None > hunspell_location = None > names = None > results = Results(words=[], context='@test_66_tmp_dir/test.txt (14)', category='cpp-string', error='Traceback (most recent call last):\n File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline\n wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding)\n File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker\n return get_process_output(process, encoding)\n File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output\n raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors=\'replace\')))\nRuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading.\n') > running = 'aspell' > self = <tests.filters.test_cpp.TestCPPStrings testMethod=test_cpp_strings_escapes> > sources = None > verbose = 4 > words = set() >----------------------------- Captured stdout call ----------------------------- >Using aspell to spellcheck cpp >Running Task: cpp... > >> Processing: @test_66_tmp_dir/test.txt > >b'agggga \ntext ayyyy \\ubbbb' >Command: ['/usr/bin/aspell', 'list', '--encoding', 'utf-8', '--lang', 'en', '-d', 'en_US', '--mode', 'none'] >Context: @test_66_tmp_dir/test.txt (2) >Traceback (most recent call last): > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline > wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker > return get_process_output(process, encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output > raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors='replace'))) >RuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading. > > >b'ahhhh \ntexts' >Command: ['/usr/bin/aspell', 'list', '--encoding', 'utf-8', '--lang', 'en', '-d', 'en_US', '--mode', 'none'] >Context: @test_66_tmp_dir/test.txt (4) >Traceback (most recent call last): > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline > wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker > return get_process_output(process, encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output > raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors='replace'))) >RuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading. > > >b'aaaa' >Command: ['/usr/bin/aspell', 'list', '--encoding', 'utf-8', '--lang', 'en', '-d', 'en_US', '--mode', 'none'] >Context: @test_66_tmp_dir/test.txt (5) >Traceback (most recent call last): > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline > wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker > return get_process_output(process, encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output > raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors='replace'))) >RuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading. > > >b'bbbb' >Command: ['/usr/bin/aspell', 'list', '--encoding', 'utf-8', '--lang', 'en', '-d', 'en_US', '--mode', 'none'] >Context: @test_66_tmp_dir/test.txt (6) >Traceback (most recent call last): > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline > wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker > return get_process_output(process, encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output > raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors='replace'))) >RuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading. > > >b'cccc' >Command: ['/usr/bin/aspell', 'list', '--encoding', 'utf-8', '--lang', 'en', '-d', 'en_US', '--mode', 'none'] >Context: @test_66_tmp_dir/test.txt (7) >Traceback (most recent call last): > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline > wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker > return get_process_output(process, encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output > raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors='replace'))) >RuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading. > > >b'"\\xaa \\nbad"' >Command: ['/usr/bin/aspell', 'list', '--encoding', 'utf-8', '--lang', 'en', '-d', 'en_US', '--mode', 'none'] >Context: @test_66_tmp_dir/test.txt (8) >Traceback (most recent call last): > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline > wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker > return get_process_output(process, encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output > raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors='replace'))) >RuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading. > > >b'"\\xbb\n \\vbad"' >Command: ['/usr/bin/aspell', 'list', '--encoding', 'utf-8', '--lang', 'en', '-d', 'en_US', '--mode', 'none'] >Context: @test_66_tmp_dir/test.txt (9) >Traceback (most recent call last): > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline > wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker > return get_process_output(process, encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output > raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors='replace'))) >RuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading. > > >b'"\\xcc"' >Command: ['/usr/bin/aspell', 'list', '--encoding', 'utf-8', '--lang', 'en', '-d', 'en_US', '--mode', 'none'] >Context: @test_66_tmp_dir/test.txt (11) >Traceback (most recent call last): > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline > wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker > return get_process_output(process, encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output > raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors='replace'))) >RuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading. > > >b'"\\xdd"' >Command: ['/usr/bin/aspell', 'list', '--encoding', 'utf-8', '--lang', 'en', '-d', 'en_US', '--mode', 'none'] >Context: @test_66_tmp_dir/test.txt (12) >Traceback (most recent call last): > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline > wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker > return get_process_output(process, encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output > raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors='replace'))) >RuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading. > > >b'"\\xee"' >Command: ['/usr/bin/aspell', 'list', '--encoding', 'utf-8', '--lang', 'en', '-d', 'en_US', '--mode', 'none'] >Context: @test_66_tmp_dir/test.txt (13) >Traceback (most recent call last): > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline > wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker > return get_process_output(process, encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output > raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors='replace'))) >RuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading. > > >b'"\\xff"' >Command: ['/usr/bin/aspell', 'list', '--encoding', 'utf-8', '--lang', 'en', '-d', 'en_US', '--mode', 'none'] >Context: @test_66_tmp_dir/test.txt (14) >Traceback (most recent call last): > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline > wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker > return get_process_output(process, encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output > raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors='replace'))) >RuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading. > > >___________________________ TestCPPGeneric.test_cpp ____________________________ > >self = <tests.filters.test_cpp.TestCPPGeneric testMethod=test_cpp> > > def test_cpp(self): > """Test CPP.""" > > bad_block = ['helo', 'begn'] > bad_comments = ['flga', 'graet'] > bad_comments2 = ['recieve', 'teh'] > bad_words = bad_block + bad_comments + bad_comments2 > good_words = ['yes', 'word'] > template = self.dedent( > r""" > /* > {} > */ > uint8_t func() {{ > uint8_t tsdd = 3; > // {} > // {} \ > reurn tsdd; > > rtuern ddst; > }} > """ > ).format( > '\n'.join(bad_block + good_words), > ' '.join(bad_comments + good_words), > ' '.join(bad_comments2 + good_words) > ) > > # Capture comment continuation > self.mktemp('test.txt', template, 'utf-8') >> self.assert_spellcheck('.cpp.yml', bad_words) > >bad_block = ['helo', 'begn'] >bad_comments = ['flga', 'graet'] >bad_comments2 = ['recieve', 'teh'] >bad_words = ['helo', 'begn', 'flga', 'graet', 'recieve', 'teh'] >good_words = ['yes', 'word'] >self = <tests.filters.test_cpp.TestCPPGeneric testMethod=test_cpp> >template = ('/*\n' > 'helo\n' > 'begn\n' > 'yes\n' > 'word\n' > '*/\n' > 'uint8_t func() {\n' > ' uint8_t tsdd = 3;\n' > ' // flga graet yes word\n' > ' // recieve teh yes word \\\n' > ' reurn tsdd;\n' > '\n' > ' rtuern ddst;\n' > '}\n') > >tests/filters/test_cpp.py:513: >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ >tests/util.py:232: in assert_spellcheck > self.assertEqual(sorted(expected), sorted(list(words))) >E AssertionError: Lists differ: ['begn', 'flga', 'graet', 'helo', 'recieve', 'teh'] != [] >E >E First list contains 6 additional elements. >E First extra element 0: >E 'begn' >E >E - ['begn', 'flga', 'graet', 'helo', 'recieve', 'teh'] >E + [] > aspell_location = '/usr/bin/aspell' > config_file = '.cpp.yml' > expected = ['helo', 'begn', 'flga', 'graet', 'recieve', 'teh'] > groups = None > hunspell_location = None > names = None > results = Results(words=[], context='@test_66_tmp_dir/test.txt (9)', category='cpp-line-comment', error='Traceback (most recent call last):\n File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline\n wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding)\n File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker\n return get_process_output(process, encoding)\n File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output\n raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors=\'replace\')))\nRuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading.\n') > running = 'aspell' > self = <tests.filters.test_cpp.TestCPPGeneric testMethod=test_cpp> > sources = None > verbose = 4 > words = set() >----------------------------- Captured stdout call ----------------------------- >Using aspell to spellcheck cpp >Running Task: cpp... > >> Processing: @test_66_tmp_dir/test.txt > >b'\nhelo\nbegn\nyes\nword\n' >Command: ['/usr/bin/aspell', 'list', '--encoding', 'utf-8', '--lang', 'en', '-d', 'en_US', '--mode', 'none'] >Context: @test_66_tmp_dir/test.txt (1) >Traceback (most recent call last): > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline > wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker > return get_process_output(process, encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output > raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors='replace'))) >RuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading. > > >b'flga graet yes word\nrecieve teh yes word \\' >Command: ['/usr/bin/aspell', 'list', '--encoding', 'utf-8', '--lang', 'en', '-d', 'en_US', '--mode', 'none'] >Context: @test_66_tmp_dir/test.txt (9) >Traceback (most recent call last): > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline > wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker > return get_process_output(process, encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output > raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors='replace'))) >RuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading. > > >______________________ TestCPPChained.test_cpp_after_text ______________________ > >self = <tests.filters.test_cpp.TestCPPChained testMethod=test_cpp_after_text> > > def test_cpp_after_text(self): > """Test CPP after text.""" > > bad_block = ['helo', 'begn'] > bad_comments = ['flga', 'graet'] > bad_comments2 = ['recieve', 'teh'] > bad_words = bad_block + bad_comments + bad_comments2 > good_words = ['yes', 'word'] > template = self.dedent( > """ > /* > {} > */ > uint8_t func() {{ > uint8_t tsdd = 3; > // {} > // {} > reurn tsdd; > }} > """ > ).format( > '\n'.join(bad_block + good_words), > ' '.join(bad_comments + good_words), > ' '.join(bad_comments2 + good_words) > ) > self.mktemp('test.txt', template, 'utf-8') >> self.assert_spellcheck('.cpp.yml', bad_words) > >bad_block = ['helo', 'begn'] >bad_comments = ['flga', 'graet'] >bad_comments2 = ['recieve', 'teh'] >bad_words = ['helo', 'begn', 'flga', 'graet', 'recieve', 'teh'] >good_words = ['yes', 'word'] >self = <tests.filters.test_cpp.TestCPPChained testMethod=test_cpp_after_text> >template = ('/*\n' > 'helo\n' > 'begn\n' > 'yes\n' > 'word\n' > '*/\n' > 'uint8_t func() {\n' > ' uint8_t tsdd = 3;\n' > ' // flga graet yes word\n' > ' // recieve teh yes word\n' > ' reurn tsdd;\n' > '}\n') > >tests/filters/test_cpp.py:567: >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ >tests/util.py:232: in assert_spellcheck > self.assertEqual(sorted(expected), sorted(list(words))) >E AssertionError: Lists differ: ['begn', 'flga', 'graet', 'helo', 'recieve', 'teh'] != [] >E >E First list contains 6 additional elements. >E First extra element 0: >E 'begn' >E >E - ['begn', 'flga', 'graet', 'helo', 'recieve', 'teh'] >E + [] > aspell_location = '/usr/bin/aspell' > config_file = '.cpp.yml' > expected = ['helo', 'begn', 'flga', 'graet', 'recieve', 'teh'] > groups = None > hunspell_location = None > names = None > results = Results(words=[], context='@test_66_tmp_dir/test.txt (9)', category='cpp-line-comment', error='Traceback (most recent call last):\n File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline\n wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding)\n File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker\n return get_process_output(process, encoding)\n File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output\n raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors=\'replace\')))\nRuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading.\n') > running = 'aspell' > self = <tests.filters.test_cpp.TestCPPChained testMethod=test_cpp_after_text> > sources = None > verbose = 4 > words = set() >----------------------------- Captured stdout call ----------------------------- >Using aspell to spellcheck cpp >Running Task: cpp... > >> Processing: @test_66_tmp_dir/test.txt > >b'\nhelo\nbegn\nyes\nword\n' >Command: ['/usr/bin/aspell', 'list', '--encoding', 'utf-8', '--lang', 'en', '-d', 'en_US', '--mode', 'none'] >Context: @test_66_tmp_dir/test.txt (1) >Traceback (most recent call last): > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline > wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker > return get_process_output(process, encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output > raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors='replace'))) >RuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading. > > >b'flga graet yes word\nrecieve teh yes word' >Command: ['/usr/bin/aspell', 'list', '--encoding', 'utf-8', '--lang', 'en', '-d', 'en_US', '--mode', 'none'] >Context: @test_66_tmp_dir/test.txt (9) >Traceback (most recent call last): > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline > wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker > return get_process_output(process, encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output > raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors='replace'))) >RuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading. > > >______________________________ TestHTML.test_html ______________________________ > >self = <tests.filters.test_html.TestHTML testMethod=test_html> > > def test_html(self): > """Test HTML.""" > > bad_comment_words = ['helo', 'begn'] > bad_content_words = ['flga', 'graet'] > bad_attr_words = ['recieve', 'teh'] > bad_words = bad_comment_words + bad_content_words + bad_attr_words > good_words = ['yes', 'word'] > > template = self.dedent( > """ > <html> > <head> > </head> > <body> > <!-- {} --> > <p>{}<code>kjaljw aljwk</code><img src="./image.png" alt="{}"/></p> > <pre>uouqei euowuw > </pre> > <p><span class="some-class">dksj dkjsk</span><span id="some-id">ksjk akjsks</span> > </body> > </html> > """ > ).format( > '\n'.join(bad_comment_words + good_words), > ' '.join(bad_content_words + good_words), > ' '.join(bad_attr_words + good_words) > ) > > self.mktemp('test.txt', template, 'utf-8') >> self.assert_spellcheck('.html.yml', bad_words) > >bad_attr_words = ['recieve', 'teh'] >bad_comment_words = ['helo', 'begn'] >bad_content_words = ['flga', 'graet'] >bad_words = ['helo', 'begn', 'flga', 'graet', 'recieve', 'teh'] >good_words = ['yes', 'word'] >self = <tests.filters.test_html.TestHTML testMethod=test_html> >template = ('<html>\n' > '<head>\n' > '</head>\n' > '<body>\n' > '<!-- helo\n' > 'begn\n' > 'yes\n' > 'word -->\n' > '<p>flga graet yes word<code>kjaljw aljwk</code><img src="./image.png" ' > 'alt="recieve teh yes word"/></p>\n' > '<pre>uouqei euowuw\n' > '</pre>\n' > '<p><span class="some-class">dksj dkjsk</span><span id="some-id">ksjk ' > 'akjsks</span>\n' > '</body>\n' > '</html>\n') > >tests/filters/test_html.py:63: >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ >tests/util.py:232: in assert_spellcheck > self.assertEqual(sorted(expected), sorted(list(words))) >E AssertionError: Lists differ: ['begn', 'flga', 'graet', 'helo', 'recieve', 'teh'] != [] >E >E First list contains 6 additional elements. >E First extra element 0: >E 'begn' >E >E - ['begn', 'flga', 'graet', 'helo', 'recieve', 'teh'] >E + [] > aspell_location = '/usr/bin/aspell' > config_file = '.html.yml' > expected = ['helo', 'begn', 'flga', 'graet', 'recieve', 'teh'] > groups = None > hunspell_location = None > names = None > results = Results(words=[], context='@test_66_tmp_dir/test.txt: html>body>p', category='htmlcontent', error='Traceback (most recent call last):\n File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline\n wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding)\n File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker\n return get_process_output(process, encoding)\n File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output\n raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors=\'replace\')))\nRuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading.\n') > running = 'aspell' > self = <tests.filters.test_html.TestHTML testMethod=test_html> > sources = None > verbose = 4 > words = set() >----------------------------- Captured stdout call ----------------------------- >Using aspell to spellcheck html >Running Task: html... > >> Processing: @test_66_tmp_dir/test.txt > >b'helo\nbegn\nyes\nword' >Command: ['/usr/bin/aspell', 'list', '--encoding', 'utf-8', '--lang', 'en', '-d', 'en_US', '--mode', 'none'] >Context: @test_66_tmp_dir/test.txt: html>body<!--comment--> >Traceback (most recent call last): > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline > wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker > return get_process_output(process, encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output > raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors='replace'))) >RuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading. > > >b'recieve teh yes word' >Command: ['/usr/bin/aspell', 'list', '--encoding', 'utf-8', '--lang', 'en', '-d', 'en_US', '--mode', 'none'] >Context: @test_66_tmp_dir/test.txt: html>body>p>img[alt] >Traceback (most recent call last): > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline > wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker > return get_process_output(process, encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output > raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors='replace'))) >RuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading. > > >b'flga graet yes word ' >Command: ['/usr/bin/aspell', 'list', '--encoding', 'utf-8', '--lang', 'en', '-d', 'en_US', '--mode', 'none'] >Context: @test_66_tmp_dir/test.txt: html>body>p >Traceback (most recent call last): > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline > wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker > return get_process_output(process, encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output > raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors='replace'))) >RuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading. > > >_______________________ TestCSSEscapes.test_css_escapes ________________________ > >self = <tests.filters.test_html.TestCSSEscapes testMethod=test_css_escapes> > > def test_css_escapes(self): > """Test CSS escapes.""" > > config = self.dedent( > """ > matrix: > - name: html5_css_escapes > sources: > - '{}/**/*.txt' > aspell: > lang: en > d: en_US > hunspell: > d: en_US > pipeline: > - pyspelling.filters.html: > mode: html5 > namespaces: > xlink: http://www.w3.org/1999/xlink > ignores: > - '[xlink\\:href\\:colon^=images]' > - '[xlink|\\68r\\65 f^=other]' > """ > ).format(self.tempdir) > self.mktemp('.html5.yml', config, 'utf-8') >> self.assert_spellcheck('.html5.yml', ['aaaa', 'cccc']) > >config = ('matrix:\n' > '- name: html5_css_escapes\n' > ' sources:\n' > " - '@test_66_tmp_dir/**/*.txt'\n" > ' aspell:\n' > ' lang: en\n' > ' d: en_US\n' > ' hunspell:\n' > ' d: en_US\n' > ' pipeline:\n' > ' - pyspelling.filters.html:\n' > ' mode: html5\n' > ' namespaces:\n' > ' xlink: http://www.w3.org/1999/xlink\n' > ' ignores:\n' > " - '[xlink\\:href\\:colon^=images]'\n" > " - '[xlink|\\68r\\65 f^=other]'\n") >self = <tests.filters.test_html.TestCSSEscapes testMethod=test_css_escapes> > >tests/filters/test_html.py:125: >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ >tests/util.py:232: in assert_spellcheck > self.assertEqual(sorted(expected), sorted(list(words))) >E AssertionError: Lists differ: ['aaaa', 'cccc'] != [] >E >E First list contains 2 additional elements. >E First extra element 0: >E 'aaaa' >E >E - ['aaaa', 'cccc'] >E + [] > aspell_location = '/usr/bin/aspell' > config_file = '.html5.yml' > expected = ['aaaa', 'cccc'] > groups = None > hunspell_location = None > names = None > results = Results(words=[], context='@test_66_tmp_dir/test.txt: html>body>h1', category='html5content', error='Traceback (most recent call last):\n File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline\n wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding)\n File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker\n return get_process_output(process, encoding)\n File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output\n raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors=\'replace\')))\nRuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading.\n') > running = 'aspell' > self = <tests.filters.test_html.TestCSSEscapes testMethod=test_css_escapes> > sources = None > verbose = 4 > words = set() >----------------------------- Captured stdout call ----------------------------- >Using aspell to spellcheck html5_css_escapes >Running Task: html5_css_escapes... > >> Processing: @test_66_tmp_dir/test.txt > >b'aaaa cccc ' >Command: ['/usr/bin/aspell', 'list', '--encoding', 'utf-8', '--lang', 'en', '-d', 'en_US', '--mode', 'none'] >Context: @test_66_tmp_dir/test.txt: html>body >Traceback (most recent call last): > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline > wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker > return get_process_output(process, encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output > raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors='replace'))) >RuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading. > > >b'A contrived example ' >Command: ['/usr/bin/aspell', 'list', '--encoding', 'utf-8', '--lang', 'en', '-d', 'en_US', '--mode', 'none'] >Context: @test_66_tmp_dir/test.txt: html>body>h1 >Traceback (most recent call last): > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline > wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker > return get_process_output(process, encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output > raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors='replace'))) >RuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading. > > >_______________ TestHtml5AttrNamespace.test_html_attr_namespace1 _______________ > >self = <tests.filters.test_html.TestHtml5AttrNamespace testMethod=test_html_attr_namespace1> > > def test_html_attr_namespace1(self): > """Test HTML.""" > > config = self.dedent( > """ > matrix: > - name: html5_attr_ns > sources: > - '{}/**/*.txt' > aspell: > lang: en > d: en_US > hunspell: > d: en_US > pipeline: > - pyspelling.filters.html: > mode: html5 > namespaces: > xlink: http://www.w3.org/1999/xlink > ignores: > - '[xlink|href$=undo]' > - '[xlink|href^=other]' > """ > ).format(self.tempdir) > self.mktemp('.html5.yml', config, 'utf-8') >> self.assert_spellcheck('.html5.yml', ['bbbb', 'cccc']) > >config = ('matrix:\n' > '- name: html5_attr_ns\n' > ' sources:\n' > " - '@test_66_tmp_dir/**/*.txt'\n" > ' aspell:\n' > ' lang: en\n' > ' d: en_US\n' > ' hunspell:\n' > ' d: en_US\n' > ' pipeline:\n' > ' - pyspelling.filters.html:\n' > ' mode: html5\n' > ' namespaces:\n' > ' xlink: http://www.w3.org/1999/xlink\n' > ' ignores:\n' > " - '[xlink|href$=undo]'\n" > " - '[xlink|href^=other]'\n") >self = <tests.filters.test_html.TestHtml5AttrNamespace testMethod=test_html_attr_namespace1> > >tests/filters/test_html.py:187: >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ >tests/util.py:232: in assert_spellcheck > self.assertEqual(sorted(expected), sorted(list(words))) >E AssertionError: Lists differ: ['bbbb', 'cccc'] != [] >E >E First list contains 2 additional elements. >E First extra element 0: >E 'bbbb' >E >E - ['bbbb', 'cccc'] >E + [] > aspell_location = '/usr/bin/aspell' > config_file = '.html5.yml' > expected = ['bbbb', 'cccc'] > groups = None > hunspell_location = None > names = None > results = Results(words=[], context='@test_66_tmp_dir/test.txt: html>body>h1', category='html5content', error='Traceback (most recent call last):\n File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline\n wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding)\n File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker\n return get_process_output(process, encoding)\n File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output\n raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors=\'replace\')))\nRuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading.\n') > running = 'aspell' > self = <tests.filters.test_html.TestHtml5AttrNamespace testMethod=test_html_attr_namespace1> > sources = None > verbose = 4 > words = set() >----------------------------- Captured stdout call ----------------------------- >Using aspell to spellcheck html5_attr_ns >Running Task: html5_attr_ns... > >> Processing: @test_66_tmp_dir/test.txt > >b'bbbb cccc ' >Command: ['/usr/bin/aspell', 'list', '--encoding', 'utf-8', '--lang', 'en', '-d', 'en_US', '--mode', 'none'] >Context: @test_66_tmp_dir/test.txt: html>body >Traceback (most recent call last): > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline > wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker > return get_process_output(process, encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output > raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors='replace'))) >RuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading. > > >b'A contrived example ' >Command: ['/usr/bin/aspell', 'list', '--encoding', 'utf-8', '--lang', 'en', '-d', 'en_US', '--mode', 'none'] >Context: @test_66_tmp_dir/test.txt: html>body>h1 >Traceback (most recent call last): > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline > wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker > return get_process_output(process, encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output > raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors='replace'))) >RuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading. > > >_______________ TestHtml5AttrNamespace.test_html_attr_namespace2 _______________ > >self = <tests.filters.test_html.TestHtml5AttrNamespace testMethod=test_html_attr_namespace2> > > def test_html_attr_namespace2(self): > """Test HTML.""" > > config = self.dedent( > """ > matrix: > - name: html5_attr_ns > sources: > - '{}/**/*.txt' > aspell: > lang: en > d: en_US > hunspell: > d: en_US > pipeline: > - pyspelling.filters.html: > mode: html5 > namespaces: > xlink: http://www.w3.org/1999/xlink > ignores: > - '[xlink|href*=forw]' > - '[xlink|href="images/sprites.svg#icon-redo"]' > - '[viewbox~="20"]' > """ > ).format(self.tempdir) > self.mktemp('.html5.yml', config, 'utf-8') >> self.assert_spellcheck('.html5.yml', ['dddd']) > >config = ('matrix:\n' > '- name: html5_attr_ns\n' > ' sources:\n' > " - '@test_66_tmp_dir/**/*.txt'\n" > ' aspell:\n' > ' lang: en\n' > ' d: en_US\n' > ' hunspell:\n' > ' d: en_US\n' > ' pipeline:\n' > ' - pyspelling.filters.html:\n' > ' mode: html5\n' > ' namespaces:\n' > ' xlink: http://www.w3.org/1999/xlink\n' > ' ignores:\n' > " - '[xlink|href*=forw]'\n" > ' - \'[xlink|href="images/sprites.svg#icon-redo"]\'\n' > ' - \'[viewbox~="20"]\'\n') >self = <tests.filters.test_html.TestHtml5AttrNamespace testMethod=test_html_attr_namespace2> > >tests/filters/test_html.py:215: >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ >tests/util.py:232: in assert_spellcheck > self.assertEqual(sorted(expected), sorted(list(words))) >E AssertionError: Lists differ: ['dddd'] != [] >E >E First list contains 1 additional elements. >E First extra element 0: >E 'dddd' >E >E - ['dddd'] >E + [] > aspell_location = '/usr/bin/aspell' > config_file = '.html5.yml' > expected = ['dddd'] > groups = None > hunspell_location = None > names = None > results = Results(words=[], context='@test_66_tmp_dir/test.txt: html>body>h1', category='html5content', error='Traceback (most recent call last):\n File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline\n wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding)\n File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker\n return get_process_output(process, encoding)\n File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output\n raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors=\'replace\')))\nRuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading.\n') > running = 'aspell' > self = <tests.filters.test_html.TestHtml5AttrNamespace testMethod=test_html_attr_namespace2> > sources = None > verbose = 4 > words = set() >----------------------------- Captured stdout call ----------------------------- >Using aspell to spellcheck html5_attr_ns >Running Task: html5_attr_ns... > >> Processing: @test_66_tmp_dir/test.txt > >b'dddd ' >Command: ['/usr/bin/aspell', 'list', '--encoding', 'utf-8', '--lang', 'en', '-d', 'en_US', '--mode', 'none'] >Context: @test_66_tmp_dir/test.txt: html>body >Traceback (most recent call last): > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline > wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker > return get_process_output(process, encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output > raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors='replace'))) >RuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading. > > >b'A contrived example ' >Command: ['/usr/bin/aspell', 'list', '--encoding', 'utf-8', '--lang', 'en', '-d', 'en_US', '--mode', 'none'] >Context: @test_66_tmp_dir/test.txt: html>body>h1 >Traceback (most recent call last): > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline > wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker > return get_process_output(process, encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output > raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors='replace'))) >RuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading. > > >_______________ TestHtml5AttrNamespace.test_html_attr_namespace3 _______________ > >self = <tests.filters.test_html.TestHtml5AttrNamespace testMethod=test_html_attr_namespace3> > > def test_html_attr_namespace3(self): > """Test HTML.""" > > config = self.dedent( > """ > matrix: > - name: html5_attr_ns > sources: > - '{}/**/*.txt' > aspell: > lang: en > d: en_US > hunspell: > d: en_US > pipeline: > - pyspelling.filters.html: > mode: html5 > namespaces: > xlink: http://www.w3.org/1999/xlink > ignores: > - '[data1]' > - '[data|="100"]' > """ > ).format(self.tempdir) > self.mktemp('.html5.yml', config, 'utf-8') >> self.assert_spellcheck('.html5.yml', ['cccc']) > >config = ('matrix:\n' > '- name: html5_attr_ns\n' > ' sources:\n' > " - '@test_66_tmp_dir/**/*.txt'\n" > ' aspell:\n' > ' lang: en\n' > ' d: en_US\n' > ' hunspell:\n' > ' d: en_US\n' > ' pipeline:\n' > ' - pyspelling.filters.html:\n' > ' mode: html5\n' > ' namespaces:\n' > ' xlink: http://www.w3.org/1999/xlink\n' > ' ignores:\n' > " - '[data1]'\n" > ' - \'[data|="100"]\'\n') >self = <tests.filters.test_html.TestHtml5AttrNamespace testMethod=test_html_attr_namespace3> > >tests/filters/test_html.py:242: >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ >tests/util.py:232: in assert_spellcheck > self.assertEqual(sorted(expected), sorted(list(words))) >E AssertionError: Lists differ: ['cccc'] != [] >E >E First list contains 1 additional elements. >E First extra element 0: >E 'cccc' >E >E - ['cccc'] >E + [] > aspell_location = '/usr/bin/aspell' > config_file = '.html5.yml' > expected = ['cccc'] > groups = None > hunspell_location = None > names = None > results = Results(words=[], context='@test_66_tmp_dir/test.txt: html>body>h1', category='html5content', error='Traceback (most recent call last):\n File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline\n wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding)\n File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker\n return get_process_output(process, encoding)\n File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output\n raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors=\'replace\')))\nRuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading.\n') > running = 'aspell' > self = <tests.filters.test_html.TestHtml5AttrNamespace testMethod=test_html_attr_namespace3> > sources = None > verbose = 4 > words = set() >----------------------------- Captured stdout call ----------------------------- >Using aspell to spellcheck html5_attr_ns >Running Task: html5_attr_ns... > >> Processing: @test_66_tmp_dir/test.txt > >b'cccc ' >Command: ['/usr/bin/aspell', 'list', '--encoding', 'utf-8', '--lang', 'en', '-d', 'en_US', '--mode', 'none'] >Context: @test_66_tmp_dir/test.txt: html>body >Traceback (most recent call last): > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline > wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker > return get_process_output(process, encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output > raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors='replace'))) >RuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading. > > >b'A contrived example ' >Command: ['/usr/bin/aspell', 'list', '--encoding', 'utf-8', '--lang', 'en', '-d', 'en_US', '--mode', 'none'] >Context: @test_66_tmp_dir/test.txt: html>body>h1 >Traceback (most recent call last): > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline > wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker > return get_process_output(process, encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output > raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors='replace'))) >RuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading. > > >____________________ TestHtml5EmptySelectors.test_css_empty ____________________ > >self = <tests.filters.test_html.TestHtml5EmptySelectors testMethod=test_css_empty> > > def test_css_empty(self): > """Test HTML.""" > > config = self.dedent( > """ > matrix: > - name: html_css > sources: > - '{}/**/*.txt' > aspell: > lang: en > d: en_US > hunspell: > d: en_US > pipeline: > - pyspelling.filters.html: > mode: html5 > ignores: > - 'span:empty + *' > """ > ).format(self.tempdir) > self.mktemp('.html5.yml', config, 'utf-8') >> self.assert_spellcheck( > '.html5.yml', [ > 'aaaa', 'cccc', 'eeee', 'ffff', 'gggg' > ] > ) > >config = ('matrix:\n' > '- name: html_css\n' > ' sources:\n' > " - '@test_66_tmp_dir/**/*.txt'\n" > ' aspell:\n' > ' lang: en\n' > ' d: en_US\n' > ' hunspell:\n' > ' d: en_US\n' > ' pipeline:\n' > ' - pyspelling.filters.html:\n' > ' mode: html5\n' > ' ignores:\n' > " - 'span:empty + *'\n") >self = <tests.filters.test_html.TestHtml5EmptySelectors testMethod=test_css_empty> > >tests/filters/test_html.py:302: >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ >tests/util.py:232: in assert_spellcheck > self.assertEqual(sorted(expected), sorted(list(words))) >E AssertionError: Lists differ: ['aaaa', 'cccc', 'eeee', 'ffff', 'gggg'] != [] >E >E First list contains 5 additional elements. >E First extra element 0: >E 'aaaa' >E >E - ['aaaa', 'cccc', 'eeee', 'ffff', 'gggg'] >E + [] > aspell_location = '/usr/bin/aspell' > config_file = '.html5.yml' > expected = ['aaaa', 'cccc', 'eeee', 'ffff', 'gggg'] > groups = None > hunspell_location = None > names = None > results = Results(words=[], context='@test_66_tmp_dir/test.txt: html>body>div>p', category='html5content', error='Traceback (most recent call last):\n File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline\n wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding)\n File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker\n return get_process_output(process, encoding)\n File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output\n raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors=\'replace\')))\nRuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading.\n') > running = 'aspell' > self = <tests.filters.test_html.TestHtml5EmptySelectors testMethod=test_css_empty> > sources = None > verbose = 4 > words = set() >----------------------------- Captured stdout call ----------------------------- >Using aspell to spellcheck html_css >Running Task: html_css... > >> Processing: @test_66_tmp_dir/test.txt > >b'comment' >Command: ['/usr/bin/aspell', 'list', '--encoding', 'utf-8', '--lang', 'en', '-d', 'en_US', '--mode', 'none'] >Context: @test_66_tmp_dir/test.txt: html>body>span<!--comment--> >Traceback (most recent call last): > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline > wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker > return get_process_output(process, encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output > raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors='replace'))) >RuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading. > > >b'aaaa cccc eeee ffff ' >Command: ['/usr/bin/aspell', 'list', '--encoding', 'utf-8', '--lang', 'en', '-d', 'en_US', '--mode', 'none'] >Context: @test_66_tmp_dir/test.txt: html>body >Traceback (most recent call last): > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline > wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker > return get_process_output(process, encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output > raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors='replace'))) >RuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading. > > >b'gggg ' >Command: ['/usr/bin/aspell', 'list', '--encoding', 'utf-8', '--lang', 'en', '-d', 'en_US', '--mode', 'none'] >Context: @test_66_tmp_dir/test.txt: html>body>div>p >Traceback (most recent call last): > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline > wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker > return get_process_output(process, encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output > raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors='replace'))) >RuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading. > > >__________________ TestHtml5OnlySelectors.test_css_only_child __________________ > >self = <tests.filters.test_html.TestHtml5OnlySelectors testMethod=test_css_only_child> > > def test_css_only_child(self): > """Test HTML.""" > > config = self.dedent( > """ > matrix: > - name: html_css > sources: > - '{}/**/*.txt' > aspell: > lang: en > d: en_US > hunspell: > d: en_US > pipeline: > - pyspelling.filters.html: > mode: html5 > ignores: > - 'p:only-child' > """ > ).format(self.tempdir) > self.mktemp('.html5.yml', config, 'utf-8') >> self.assert_spellcheck( > '.html5.yml', [ > 'bbbb', 'cccc', 'dddd', 'eeee', 'ffff', 'gggg', 'hhhh' > ] > ) > >config = ('matrix:\n' > '- name: html_css\n' > ' sources:\n' > " - '@test_66_tmp_dir/**/*.txt'\n" > ' aspell:\n' > ' lang: en\n' > ' d: en_US\n' > ' hunspell:\n' > ' d: en_US\n' > ' pipeline:\n' > ' - pyspelling.filters.html:\n' > ' mode: html5\n' > ' ignores:\n' > " - 'p:only-child'\n") >self = <tests.filters.test_html.TestHtml5OnlySelectors testMethod=test_css_only_child> > >tests/filters/test_html.py:364: >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ >tests/util.py:232: in assert_spellcheck > self.assertEqual(sorted(expected), sorted(list(words))) >E AssertionError: Lists differ: ['bbbb', 'cccc', 'dddd', 'eeee', 'ffff', 'gggg', 'hhhh'] != [] >E >E First list contains 7 additional elements. >E First extra element 0: >E 'bbbb' >E >E - ['bbbb', 'cccc', 'dddd', 'eeee', 'ffff', 'gggg', 'hhhh'] >E + [] > aspell_location = '/usr/bin/aspell' > config_file = '.html5.yml' > expected = ['bbbb', 'cccc', 'dddd', 'eeee', 'ffff', 'gggg', 'hhhh'] > groups = None > hunspell_location = None > names = None > results = Results(words=[], context='@test_66_tmp_dir/test.txt: html>body>div>p', category='html5content', error='Traceback (most recent call last):\n File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline\n wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding)\n File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker\n return get_process_output(process, encoding)\n File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output\n raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors=\'replace\')))\nRuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading.\n') > running = 'aspell' > self = <tests.filters.test_html.TestHtml5OnlySelectors testMethod=test_css_only_child> > sources = None > verbose = 4 > words = set() >----------------------------- Captured stdout call ----------------------------- >Using aspell to spellcheck html_css >Running Task: html_css... > >> Processing: @test_66_tmp_dir/test.txt > >b'bbbb cccc eeee ffff ' >Command: ['/usr/bin/aspell', 'list', '--encoding', 'utf-8', '--lang', 'en', '-d', 'en_US', '--mode', 'none'] >Context: @test_66_tmp_dir/test.txt: html>body >Traceback (most recent call last): > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline > wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker > return get_process_output(process, encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output > raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors='replace'))) >RuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading. > > >b'dddd ' >Command: ['/usr/bin/aspell', 'list', '--encoding', 'utf-8', '--lang', 'en', '-d', 'en_US', '--mode', 'none'] >Context: @test_66_tmp_dir/test.txt: html>body>p >Traceback (most recent call last): > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline > wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker > return get_process_output(process, encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output > raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors='replace'))) >RuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading. > > >b'gggg ' >Command: ['/usr/bin/aspell', 'list', '--encoding', 'utf-8', '--lang', 'en', '-d', 'en_US', '--mode', 'none'] >Context: @test_66_tmp_dir/test.txt: html>body>div>p >Traceback (most recent call last): > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline > wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker > return get_process_output(process, encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output > raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors='replace'))) >RuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading. > > >b'hhhh ' >Command: ['/usr/bin/aspell', 'list', '--encoding', 'utf-8', '--lang', 'en', '-d', 'en_US', '--mode', 'none'] >Context: @test_66_tmp_dir/test.txt: html>body>div>p >Traceback (most recent call last): > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline > wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker > return get_process_output(process, encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output > raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors='replace'))) >RuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading. > > >__________________ TestHtml5OnlySelectors.test_css_only_type ___________________ > >self = <tests.filters.test_html.TestHtml5OnlySelectors testMethod=test_css_only_type> > > def test_css_only_type(self): > """Test HTML.""" > > config = self.dedent( > """ > matrix: > - name: html_css > sources: > - '{}/**/*.txt' > aspell: > lang: en > d: en_US > hunspell: > d: en_US > pipeline: > - pyspelling.filters.html: > mode: html5 > ignores: > - 'p:only-of-type' > """ > ).format(self.tempdir) > self.mktemp('.html5.yml', config, 'utf-8') >> self.assert_spellcheck( > '.html5.yml', [ > 'bbbb', 'cccc', 'eeee', 'ffff', 'gggg', 'hhhh' > ] > ) > >config = ('matrix:\n' > '- name: html_css\n' > ' sources:\n' > " - '@test_66_tmp_dir/**/*.txt'\n" > ' aspell:\n' > ' lang: en\n' > ' d: en_US\n' > ' hunspell:\n' > ' d: en_US\n' > ' pipeline:\n' > ' - pyspelling.filters.html:\n' > ' mode: html5\n' > ' ignores:\n' > " - 'p:only-of-type'\n") >self = <tests.filters.test_html.TestHtml5OnlySelectors testMethod=test_css_only_type> > >tests/filters/test_html.py:392: >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ >tests/util.py:232: in assert_spellcheck > self.assertEqual(sorted(expected), sorted(list(words))) >E AssertionError: Lists differ: ['bbbb', 'cccc', 'eeee', 'ffff', 'gggg', 'hhhh'] != [] >E >E First list contains 6 additional elements. >E First extra element 0: >E 'bbbb' >E >E - ['bbbb', 'cccc', 'eeee', 'ffff', 'gggg', 'hhhh'] >E + [] > aspell_location = '/usr/bin/aspell' > config_file = '.html5.yml' > expected = ['bbbb', 'cccc', 'eeee', 'ffff', 'gggg', 'hhhh'] > groups = None > hunspell_location = None > names = None > results = Results(words=[], context='@test_66_tmp_dir/test.txt: html>body>div>p', category='html5content', error='Traceback (most recent call last):\n File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline\n wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding)\n File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker\n return get_process_output(process, encoding)\n File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output\n raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors=\'replace\')))\nRuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading.\n') > running = 'aspell' > self = <tests.filters.test_html.TestHtml5OnlySelectors testMethod=test_css_only_type> > sources = None > verbose = 4 > words = set() >----------------------------- Captured stdout call ----------------------------- >Using aspell to spellcheck html_css >Running Task: html_css... > >> Processing: @test_66_tmp_dir/test.txt > >b'bbbb cccc eeee ffff ' >Command: ['/usr/bin/aspell', 'list', '--encoding', 'utf-8', '--lang', 'en', '-d', 'en_US', '--mode', 'none'] >Context: @test_66_tmp_dir/test.txt: html>body >Traceback (most recent call last): > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline > wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker > return get_process_output(process, encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output > raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors='replace'))) >RuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading. > > >b'gggg ' >Command: ['/usr/bin/aspell', 'list', '--encoding', 'utf-8', '--lang', 'en', '-d', 'en_US', '--mode', 'none'] >Context: @test_66_tmp_dir/test.txt: html>body>div>p >Traceback (most recent call last): > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline > wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker > return get_process_output(process, encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output > raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors='replace'))) >RuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading. > > >b'hhhh ' >Command: ['/usr/bin/aspell', 'list', '--encoding', 'utf-8', '--lang', 'en', '-d', 'en_US', '--mode', 'none'] >Context: @test_66_tmp_dir/test.txt: html>body>div>p >Traceback (most recent call last): > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline > wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker > return get_process_output(process, encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output > raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors='replace'))) >RuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading. > > >_________________ TestHtml5NthOfSelectors.test_css_child_of_s __________________ > >self = <tests.filters.test_html.TestHtml5NthOfSelectors testMethod=test_css_child_of_s> > > def test_css_child_of_s(self): > """Test HTML.""" > > config = self.dedent( > """ > matrix: > - name: html_css > sources: > - '{}/**/*.txt' > aspell: > lang: en > d: en_US > hunspell: > d: en_US > pipeline: > - pyspelling.filters.html: > mode: html5 > ignores: > - ':nth-child(2n + 1 of :is(p, span).test)' > """ > ).format(self.tempdir) > self.mktemp('.html5.yml', config, 'utf-8') >> self.assert_spellcheck( > '.html5.yml', [ > 'aaaa', 'bbbb', 'dddd', 'eeee', 'ffff', 'hhhh', 'iiii', 'jjjj', 'llll' > ] > ) > >config = ('matrix:\n' > '- name: html_css\n' > ' sources:\n' > " - '@test_66_tmp_dir/**/*.txt'\n" > ' aspell:\n' > ' lang: en\n' > ' d: en_US\n' > ' hunspell:\n' > ' d: en_US\n' > ' pipeline:\n' > ' - pyspelling.filters.html:\n' > ' mode: html5\n' > ' ignores:\n' > " - ':nth-child(2n + 1 of :is(p, span).test)'\n") >self = <tests.filters.test_html.TestHtml5NthOfSelectors testMethod=test_css_child_of_s> > >tests/filters/test_html.py:454: >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ >tests/util.py:232: in assert_spellcheck > self.assertEqual(sorted(expected), sorted(list(words))) >E AssertionError: Lists differ: ['aaaa', 'bbbb', 'dddd', 'eeee', 'ffff', 'hhhh', 'iiii', 'jjjj', 'llll'] != [] >E >E First list contains 9 additional elements. >E First extra element 0: >E 'aaaa' >E >E - ['aaaa', 'bbbb', 'dddd', 'eeee', 'ffff', 'hhhh', 'iiii', 'jjjj', 'llll'] >E + [] > aspell_location = '/usr/bin/aspell' > config_file = '.html5.yml' > expected = ['aaaa', 'bbbb', 'dddd', 'eeee', 'ffff', 'hhhh', 'iiii', 'jjjj', 'llll'] > groups = None > hunspell_location = None > names = None > results = Results(words=[], context='@test_66_tmp_dir/test.txt: html>body>p', category='html5content', error='Traceback (most recent call last):\n File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline\n wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding)\n File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker\n return get_process_output(process, encoding)\n File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output\n raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors=\'replace\')))\nRuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading.\n') > running = 'aspell' > self = <tests.filters.test_html.TestHtml5NthOfSelectors testMethod=test_css_child_of_s> > sources = None > verbose = 4 > words = set() >----------------------------- Captured stdout call ----------------------------- >Using aspell to spellcheck html_css >Running Task: html_css... > >> Processing: @test_66_tmp_dir/test.txt > >b'dddd eeee ffff llll ' >Command: ['/usr/bin/aspell', 'list', '--encoding', 'utf-8', '--lang', 'en', '-d', 'en_US', '--mode', 'none'] >Context: @test_66_tmp_dir/test.txt: html>body >Traceback (most recent call last): > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline > wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker > return get_process_output(process, encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output > raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors='replace'))) >RuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading. > > >b'aaaa ' >Command: ['/usr/bin/aspell', 'list', '--encoding', 'utf-8', '--lang', 'en', '-d', 'en_US', '--mode', 'none'] >Context: @test_66_tmp_dir/test.txt: html>body>p >Traceback (most recent call last): > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline > wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker > return get_process_output(process, encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output > raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors='replace'))) >RuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading. > > >b'bbbb ' >Command: ['/usr/bin/aspell', 'list', '--encoding', 'utf-8', '--lang', 'en', '-d', 'en_US', '--mode', 'none'] >Context: @test_66_tmp_dir/test.txt: html>body>p >Traceback (most recent call last): > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline > wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker > return get_process_output(process, encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output > raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors='replace'))) >RuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading. > > >b'hhhh ' >Command: ['/usr/bin/aspell', 'list', '--encoding', 'utf-8', '--lang', 'en', '-d', 'en_US', '--mode', 'none'] >Context: @test_66_tmp_dir/test.txt: html>body>p >Traceback (most recent call last): > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline > wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker > return get_process_output(process, encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output > raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors='replace'))) >RuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading. > > >b'iiii ' >Command: ['/usr/bin/aspell', 'list', '--encoding', 'utf-8', '--lang', 'en', '-d', 'en_US', '--mode', 'none'] >Context: @test_66_tmp_dir/test.txt: html>body>p.test >Traceback (most recent call last): > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline > wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker > return get_process_output(process, encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output > raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors='replace'))) >RuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading. > > >b'jjjj ' >Command: ['/usr/bin/aspell', 'list', '--encoding', 'utf-8', '--lang', 'en', '-d', 'en_US', '--mode', 'none'] >Context: @test_66_tmp_dir/test.txt: html>body>p >Traceback (most recent call last): > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline > wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker > return get_process_output(process, encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output > raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors='replace'))) >RuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading. > > >____________ TestHtml5NthOfSelectors.test_css_child_of_s_vs_schild _____________ > >self = <tests.filters.test_html.TestHtml5NthOfSelectors testMethod=test_css_child_of_s_vs_schild> > > def test_css_child_of_s_vs_schild(self): > """Test HTML.""" > > config = self.dedent( > """ > matrix: > - name: html_css > sources: > - '{}/**/*.txt' > aspell: > lang: en > d: en_US > hunspell: > d: en_US > pipeline: > - pyspelling.filters.html: > mode: html5 > ignores: > - ':nth-child(-n+3 of p)' > """ > ).format(self.tempdir) > self.mktemp('.html5.yml', config, 'utf-8') >> self.assert_spellcheck( > '.html5.yml', [ > 'cccc', 'dddd', 'eeee', 'ffff', 'gggg', 'iiii', 'jjjj', 'kkkk', 'llll' > ] > ) > >config = ('matrix:\n' > '- name: html_css\n' > ' sources:\n' > " - '@test_66_tmp_dir/**/*.txt'\n" > ' aspell:\n' > ' lang: en\n' > ' d: en_US\n' > ' hunspell:\n' > ' d: en_US\n' > ' pipeline:\n' > ' - pyspelling.filters.html:\n' > ' mode: html5\n' > ' ignores:\n' > " - ':nth-child(-n+3 of p)'\n") >self = <tests.filters.test_html.TestHtml5NthOfSelectors testMethod=test_css_child_of_s_vs_schild> > >tests/filters/test_html.py:482: >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ >tests/util.py:232: in assert_spellcheck > self.assertEqual(sorted(expected), sorted(list(words))) >E AssertionError: Lists differ: ['cccc', 'dddd', 'eeee', 'ffff', 'gggg', 'iiii', 'jjjj', 'kkkk', 'llll'] != [] >E >E First list contains 9 additional elements. >E First extra element 0: >E 'cccc' >E >E - ['cccc', 'dddd', 'eeee', 'ffff', 'gggg', 'iiii', 'jjjj', 'kkkk', 'llll'] >E + [] > aspell_location = '/usr/bin/aspell' > config_file = '.html5.yml' > expected = ['cccc', 'dddd', 'eeee', 'ffff', 'gggg', 'iiii', 'jjjj', 'kkkk', 'llll'] > groups = None > hunspell_location = None > names = None > results = Results(words=[], context='@test_66_tmp_dir/test.txt: html>body>p.test', category='html5content', error='Traceback (most recent call last):\n File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline\n wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding)\n File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker\n return get_process_output(process, encoding)\n File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output\n raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors=\'replace\')))\nRuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading.\n') > running = 'aspell' > self = <tests.filters.test_html.TestHtml5NthOfSelectors testMethod=test_css_child_of_s_vs_schild> > sources = None > verbose = 4 > words = set() >----------------------------- Captured stdout call ----------------------------- >Using aspell to spellcheck html_css >Running Task: html_css... > >> Processing: @test_66_tmp_dir/test.txt > >b'cccc dddd eeee ffff gggg llll ' >Command: ['/usr/bin/aspell', 'list', '--encoding', 'utf-8', '--lang', 'en', '-d', 'en_US', '--mode', 'none'] >Context: @test_66_tmp_dir/test.txt: html>body >Traceback (most recent call last): > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline > wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker > return get_process_output(process, encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output > raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors='replace'))) >RuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading. > > >b'iiii ' >Command: ['/usr/bin/aspell', 'list', '--encoding', 'utf-8', '--lang', 'en', '-d', 'en_US', '--mode', 'none'] >Context: @test_66_tmp_dir/test.txt: html>body>p.test >Traceback (most recent call last): > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline > wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker > return get_process_output(process, encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output > raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors='replace'))) >RuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading. > > >b'jjjj ' >Command: ['/usr/bin/aspell', 'list', '--encoding', 'utf-8', '--lang', 'en', '-d', 'en_US', '--mode', 'none'] >Context: @test_66_tmp_dir/test.txt: html>body>p >Traceback (most recent call last): > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline > wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker > return get_process_output(process, encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output > raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors='replace'))) >RuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading. > > >b'kkkk ' >Command: ['/usr/bin/aspell', 'list', '--encoding', 'utf-8', '--lang', 'en', '-d', 'en_US', '--mode', 'none'] >Context: @test_66_tmp_dir/test.txt: html>body>p.test >Traceback (most recent call last): > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline > wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker > return get_process_output(process, encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output > raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors='replace'))) >RuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading. > > >__________________ TestHtml5NthSelectors.test_css_first_child __________________ > >self = <tests.filters.test_html.TestHtml5NthSelectors testMethod=test_css_first_child> > > def test_css_first_child(self): > """Test HTML.""" > > config = self.dedent( > """ > matrix: > - name: html_css > sources: > - '{}/**/*.txt' > aspell: > lang: en > d: en_US > hunspell: > d: en_US > pipeline: > - pyspelling.filters.html: > mode: html5 > ignores: > - 'p:first-child' > """ > ).format(self.tempdir) > self.mktemp('.html5.yml', config, 'utf-8') >> self.assert_spellcheck( > '.html5.yml', [ > 'bbbb', 'cccc', 'dddd', 'eeee', 'ffff', 'gggg', 'hhhh', 'iiii', 'jjjj', 'kkkk', 'llll' > ] > ) > >config = ('matrix:\n' > '- name: html_css\n' > ' sources:\n' > " - '@test_66_tmp_dir/**/*.txt'\n" > ' aspell:\n' > ' lang: en\n' > ' d: en_US\n' > ' hunspell:\n' > ' d: en_US\n' > ' pipeline:\n' > ' - pyspelling.filters.html:\n' > ' mode: html5\n' > ' ignores:\n' > " - 'p:first-child'\n") >self = <tests.filters.test_html.TestHtml5NthSelectors testMethod=test_css_first_child> > >tests/filters/test_html.py:569: >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ >tests/util.py:232: in assert_spellcheck > self.assertEqual(sorted(expected), sorted(list(words))) >E AssertionError: Lists differ: ['bbbb', 'cccc', 'dddd', 'eeee', 'ffff', '[41 chars]lll'] != [] >E >E First list contains 11 additional elements. >E First extra element 0: >E 'bbbb' >E >E + [] >E - ['bbbb', >E - 'cccc', >E - 'dddd', >E - 'eeee', >E - 'ffff', >E - 'gggg', >E - 'hhhh', >E - 'iiii', >E - 'jjjj', >E - 'kkkk', >E - 'llll'] > aspell_location = '/usr/bin/aspell' > config_file = '.html5.yml' > expected = ['bbbb', > 'cccc', > 'dddd', > 'eeee', > 'ffff', > 'gggg', > 'hhhh', > 'iiii', > 'jjjj', > 'kkkk', > 'llll'] > groups = None > hunspell_location = None > names = None > results = Results(words=[], context='@test_66_tmp_dir/test.txt: html>body>p', category='html5content', error='Traceback (most recent call last):\n File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline\n wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding)\n File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker\n return get_process_output(process, encoding)\n File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output\n raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors=\'replace\')))\nRuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading.\n') > running = 'aspell' > self = <tests.filters.test_html.TestHtml5NthSelectors testMethod=test_css_first_child> > sources = None > verbose = 4 > words = set() >----------------------------- Captured stdout call ----------------------------- >Using aspell to spellcheck html_css >Running Task: html_css... > >> Processing: @test_66_tmp_dir/test.txt > >b'cccc dddd eeee ffff gggg llll ' >Command: ['/usr/bin/aspell', 'list', '--encoding', 'utf-8', '--lang', 'en', '-d', 'en_US', '--mode', 'none'] >Context: @test_66_tmp_dir/test.txt: html>body >Traceback (most recent call last): > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline > wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker > return get_process_output(process, encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output > raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors='replace'))) >RuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading. > > >b'bbbb ' >Command: ['/usr/bin/aspell', 'list', '--encoding', 'utf-8', '--lang', 'en', '-d', 'en_US', '--mode', 'none'] >Context: @test_66_tmp_dir/test.txt: html>body>p >Traceback (most recent call last): > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline > wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker > return get_process_output(process, encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output > raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors='replace'))) >RuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading. > > >b'hhhh ' >Command: ['/usr/bin/aspell', 'list', '--encoding', 'utf-8', '--lang', 'en', '-d', 'en_US', '--mode', 'none'] >Context: @test_66_tmp_dir/test.txt: html>body>p >Traceback (most recent call last): > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline > wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker > return get_process_output(process, encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output > raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors='replace'))) >RuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading. > > >b'iiii ' >Command: ['/usr/bin/aspell', 'list', '--encoding', 'utf-8', '--lang', 'en', '-d', 'en_US', '--mode', 'none'] >Context: @test_66_tmp_dir/test.txt: html>body>p >Traceback (most recent call last): > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline > wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker > return get_process_output(process, encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output > raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors='replace'))) >RuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading. > > >b'jjjj ' >Command: ['/usr/bin/aspell', 'list', '--encoding', 'utf-8', '--lang', 'en', '-d', 'en_US', '--mode', 'none'] >Context: @test_66_tmp_dir/test.txt: html>body>p >Traceback (most recent call last): > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline > wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker > return get_process_output(process, encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output > raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors='replace'))) >RuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading. > > >b'kkkk ' >Command: ['/usr/bin/aspell', 'list', '--encoding', 'utf-8', '--lang', 'en', '-d', 'en_US', '--mode', 'none'] >Context: @test_66_tmp_dir/test.txt: html>body>p >Traceback (most recent call last): > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline > wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker > return get_process_output(process, encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output > raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors='replace'))) >RuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading. > > >__________________ TestHtml5NthSelectors.test_css_first_type ___________________ > >self = <tests.filters.test_html.TestHtml5NthSelectors testMethod=test_css_first_type> > > def test_css_first_type(self): > """Test HTML.""" > > config = self.dedent( > """ > matrix: > - name: html_css > sources: > - '{}/**/*.txt' > aspell: > lang: en > d: en_US > hunspell: > d: en_US > pipeline: > - pyspelling.filters.html: > mode: html5 > ignores: > - 'span:first-of-type' > """ > ).format(self.tempdir) > self.mktemp('.html5.yml', config, 'utf-8') >> self.assert_spellcheck( > '.html5.yml', [ > 'aaaa', 'bbbb', 'dddd', 'eeee', 'ffff', 'gggg', 'hhhh', 'iiii', 'jjjj', 'kkkk', 'llll' > ] > ) > >config = ('matrix:\n' > '- name: html_css\n' > ' sources:\n' > " - '@test_66_tmp_dir/**/*.txt'\n" > ' aspell:\n' > ' lang: en\n' > ' d: en_US\n' > ' hunspell:\n' > ' d: en_US\n' > ' pipeline:\n' > ' - pyspelling.filters.html:\n' > ' mode: html5\n' > ' ignores:\n' > " - 'span:first-of-type'\n") >self = <tests.filters.test_html.TestHtml5NthSelectors testMethod=test_css_first_type> > >tests/filters/test_html.py:877: >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ >tests/util.py:232: in assert_spellcheck > self.assertEqual(sorted(expected), sorted(list(words))) >E AssertionError: Lists differ: ['aaaa', 'bbbb', 'dddd', 'eeee', 'ffff', '[41 chars]lll'] != [] >E >E First list contains 11 additional elements. >E First extra element 0: >E 'aaaa' >E >E + [] >E - ['aaaa', >E - 'bbbb', >E - 'dddd', >E - 'eeee', >E - 'ffff', >E - 'gggg', >E - 'hhhh', >E - 'iiii', >E - 'jjjj', >E - 'kkkk', >E - 'llll'] > aspell_location = '/usr/bin/aspell' > config_file = '.html5.yml' > expected = ['aaaa', > 'bbbb', > 'dddd', > 'eeee', > 'ffff', > 'gggg', > 'hhhh', > 'iiii', > 'jjjj', > 'kkkk', > 'llll'] > groups = None > hunspell_location = None > names = None > results = Results(words=[], context='@test_66_tmp_dir/test.txt: html>body>p', category='html5content', error='Traceback (most recent call last):\n File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline\n wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding)\n File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker\n return get_process_output(process, encoding)\n File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output\n raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors=\'replace\')))\nRuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading.\n') > running = 'aspell' > self = <tests.filters.test_html.TestHtml5NthSelectors testMethod=test_css_first_type> > sources = None > verbose = 4 > words = set() >----------------------------- Captured stdout call ----------------------------- >Using aspell to spellcheck html_css >Running Task: html_css... > >> Processing: @test_66_tmp_dir/test.txt > >b'dddd eeee ffff gggg llll ' >Command: ['/usr/bin/aspell', 'list', '--encoding', 'utf-8', '--lang', 'en', '-d', 'en_US', '--mode', 'none'] >Context: @test_66_tmp_dir/test.txt: html>body >Traceback (most recent call last): > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline > wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker > return get_process_output(process, encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output > raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors='replace'))) >RuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading. > > >b'aaaa ' >Command: ['/usr/bin/aspell', 'list', '--encoding', 'utf-8', '--lang', 'en', '-d', 'en_US', '--mode', 'none'] >Context: @test_66_tmp_dir/test.txt: html>body>p >Traceback (most recent call last): > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline > wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker > return get_process_output(process, encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output > raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors='replace'))) >RuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading. > > >b'bbbb ' >Command: ['/usr/bin/aspell', 'list', '--encoding', 'utf-8', '--lang', 'en', '-d', 'en_US', '--mode', 'none'] >Context: @test_66_tmp_dir/test.txt: html>body>p >Traceback (most recent call last): > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline > wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker > return get_process_output(process, encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output > raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors='replace'))) >RuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading. > > >b'hhhh ' >Command: ['/usr/bin/aspell', 'list', '--encoding', 'utf-8', '--lang', 'en', '-d', 'en_US', '--mode', 'none'] >Context: @test_66_tmp_dir/test.txt: html>body>p >Traceback (most recent call last): > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline > wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker > return get_process_output(process, encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output > raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors='replace'))) >RuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading. > > >b'iiii ' >Command: ['/usr/bin/aspell', 'list', '--encoding', 'utf-8', '--lang', 'en', '-d', 'en_US', '--mode', 'none'] >Context: @test_66_tmp_dir/test.txt: html>body>p >Traceback (most recent call last): > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline > wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker > return get_process_output(process, encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output > raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors='replace'))) >RuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading. > > >b'jjjj ' >Command: ['/usr/bin/aspell', 'list', '--encoding', 'utf-8', '--lang', 'en', '-d', 'en_US', '--mode', 'none'] >Context: @test_66_tmp_dir/test.txt: html>body>p >Traceback (most recent call last): > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline > wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker > return get_process_output(process, encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output > raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors='replace'))) >RuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading. > > >b'kkkk ' >Command: ['/usr/bin/aspell', 'list', '--encoding', 'utf-8', '--lang', 'en', '-d', 'en_US', '--mode', 'none'] >Context: @test_66_tmp_dir/test.txt: html>body>p >Traceback (most recent call last): > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline > wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker > return get_process_output(process, encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output > raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors='replace'))) >RuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading. > > >__________________ TestHtml5NthSelectors.test_css_last_child ___________________ > >self = <tests.filters.test_html.TestHtml5NthSelectors testMethod=test_css_last_child> > > def test_css_last_child(self): > """Test HTML.""" > > config = self.dedent( > """ > matrix: > - name: html_css > sources: > - '{}/**/*.txt' > aspell: > lang: en > d: en_US > hunspell: > d: en_US > pipeline: > - pyspelling.filters.html: > mode: html5 > ignores: > - 'span:last-child' > """ > ).format(self.tempdir) > self.mktemp('.html5.yml', config, 'utf-8') >> self.assert_spellcheck( > '.html5.yml', [ > 'aaaa', 'bbbb', 'cccc', 'dddd', 'eeee', 'ffff', 'gggg', 'hhhh', 'iiii', 'jjjj', 'kkkk' > ] > ) > >config = ('matrix:\n' > '- name: html_css\n' > ' sources:\n' > " - '@test_66_tmp_dir/**/*.txt'\n" > ' aspell:\n' > ' lang: en\n' > ' d: en_US\n' > ' hunspell:\n' > ' d: en_US\n' > ' pipeline:\n' > ' - pyspelling.filters.html:\n' > ' mode: html5\n' > ' ignores:\n' > " - 'span:last-child'\n") >self = <tests.filters.test_html.TestHtml5NthSelectors testMethod=test_css_last_child> > >tests/filters/test_html.py:905: >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ >tests/util.py:232: in assert_spellcheck > self.assertEqual(sorted(expected), sorted(list(words))) >E AssertionError: Lists differ: ['aaaa', 'bbbb', 'cccc', 'dddd', 'eeee', '[41 chars]kkk'] != [] >E >E First list contains 11 additional elements. >E First extra element 0: >E 'aaaa' >E >E + [] >E - ['aaaa', >E - 'bbbb', >E - 'cccc', >E - 'dddd', >E - 'eeee', >E - 'ffff', >E - 'gggg', >E - 'hhhh', >E - 'iiii', >E - 'jjjj', >E - 'kkkk'] > aspell_location = '/usr/bin/aspell' > config_file = '.html5.yml' > expected = ['aaaa', > 'bbbb', > 'cccc', > 'dddd', > 'eeee', > 'ffff', > 'gggg', > 'hhhh', > 'iiii', > 'jjjj', > 'kkkk'] > groups = None > hunspell_location = None > names = None > results = Results(words=[], context='@test_66_tmp_dir/test.txt: html>body>p', category='html5content', error='Traceback (most recent call last):\n File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline\n wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding)\n File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker\n return get_process_output(process, encoding)\n File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output\n raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors=\'replace\')))\nRuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading.\n') > running = 'aspell' > self = <tests.filters.test_html.TestHtml5NthSelectors testMethod=test_css_last_child> > sources = None > verbose = 4 > words = set() >----------------------------- Captured stdout call ----------------------------- >Using aspell to spellcheck html_css >Running Task: html_css... > >> Processing: @test_66_tmp_dir/test.txt > >b'cccc dddd eeee ffff gggg ' >Command: ['/usr/bin/aspell', 'list', '--encoding', 'utf-8', '--lang', 'en', '-d', 'en_US', '--mode', 'none'] >Context: @test_66_tmp_dir/test.txt: html>body >Traceback (most recent call last): > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline > wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker > return get_process_output(process, encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output > raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors='replace'))) >RuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading. > > >b'aaaa ' >Command: ['/usr/bin/aspell', 'list', '--encoding', 'utf-8', '--lang', 'en', '-d', 'en_US', '--mode', 'none'] >Context: @test_66_tmp_dir/test.txt: html>body>p >Traceback (most recent call last): > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline > wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker > return get_process_output(process, encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output > raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors='replace'))) >RuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading. > > >b'bbbb ' >Command: ['/usr/bin/aspell', 'list', '--encoding', 'utf-8', '--lang', 'en', '-d', 'en_US', '--mode', 'none'] >Context: @test_66_tmp_dir/test.txt: html>body>p >Traceback (most recent call last): > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline > wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker > return get_process_output(process, encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output > raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors='replace'))) >RuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading. > > >b'hhhh ' >Command: ['/usr/bin/aspell', 'list', '--encoding', 'utf-8', '--lang', 'en', '-d', 'en_US', '--mode', 'none'] >Context: @test_66_tmp_dir/test.txt: html>body>p >Traceback (most recent call last): > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline > wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker > return get_process_output(process, encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output > raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors='replace'))) >RuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading. > > >b'iiii ' >Command: ['/usr/bin/aspell', 'list', '--encoding', 'utf-8', '--lang', 'en', '-d', 'en_US', '--mode', 'none'] >Context: @test_66_tmp_dir/test.txt: html>body>p >Traceback (most recent call last): > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline > wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker > return get_process_output(process, encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output > raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors='replace'))) >RuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading. > > >b'jjjj ' >Command: ['/usr/bin/aspell', 'list', '--encoding', 'utf-8', '--lang', 'en', '-d', 'en_US', '--mode', 'none'] >Context: @test_66_tmp_dir/test.txt: html>body>p >Traceback (most recent call last): > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline > wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker > return get_process_output(process, encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output > raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors='replace'))) >RuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading. > > >b'kkkk ' >Command: ['/usr/bin/aspell', 'list', '--encoding', 'utf-8', '--lang', 'en', '-d', 'en_US', '--mode', 'none'] >Context: @test_66_tmp_dir/test.txt: html>body>p >Traceback (most recent call last): > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline > wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker > return get_process_output(process, encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output > raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors='replace'))) >RuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading. > > >___________________ TestHtml5NthSelectors.test_css_last_type ___________________ > >self = <tests.filters.test_html.TestHtml5NthSelectors testMethod=test_css_last_type> > > def test_css_last_type(self): > """Test HTML.""" > > config = self.dedent( > """ > matrix: > - name: html_css > sources: > - '{}/**/*.txt' > aspell: > lang: en > d: en_US > hunspell: > d: en_US > pipeline: > - pyspelling.filters.html: > mode: html5 > ignores: > - 'p:last-of-type' > """ > ).format(self.tempdir) > self.mktemp('.html5.yml', config, 'utf-8') >> self.assert_spellcheck( > '.html5.yml', [ > 'aaaa', 'bbbb', 'cccc', 'dddd', 'eeee', 'ffff', 'gggg', 'hhhh', 'iiii', 'jjjj', 'llll' > ] > ) > >config = ('matrix:\n' > '- name: html_css\n' > ' sources:\n' > " - '@test_66_tmp_dir/**/*.txt'\n" > ' aspell:\n' > ' lang: en\n' > ' d: en_US\n' > ' hunspell:\n' > ' d: en_US\n' > ' pipeline:\n' > ' - pyspelling.filters.html:\n' > ' mode: html5\n' > ' ignores:\n' > " - 'p:last-of-type'\n") >self = <tests.filters.test_html.TestHtml5NthSelectors testMethod=test_css_last_type> > >tests/filters/test_html.py:933: >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ >tests/util.py:232: in assert_spellcheck > self.assertEqual(sorted(expected), sorted(list(words))) >E AssertionError: Lists differ: ['aaaa', 'bbbb', 'cccc', 'dddd', 'eeee', '[41 chars]lll'] != [] >E >E First list contains 11 additional elements. >E First extra element 0: >E 'aaaa' >E >E + [] >E - ['aaaa', >E - 'bbbb', >E - 'cccc', >E - 'dddd', >E - 'eeee', >E - 'ffff', >E - 'gggg', >E - 'hhhh', >E - 'iiii', >E - 'jjjj', >E - 'llll'] > aspell_location = '/usr/bin/aspell' > config_file = '.html5.yml' > expected = ['aaaa', > 'bbbb', > 'cccc', > 'dddd', > 'eeee', > 'ffff', > 'gggg', > 'hhhh', > 'iiii', > 'jjjj', > 'llll'] > groups = None > hunspell_location = None > names = None > results = Results(words=[], context='@test_66_tmp_dir/test.txt: html>body>p', category='html5content', error='Traceback (most recent call last):\n File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline\n wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding)\n File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker\n return get_process_output(process, encoding)\n File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output\n raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors=\'replace\')))\nRuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading.\n') > running = 'aspell' > self = <tests.filters.test_html.TestHtml5NthSelectors testMethod=test_css_last_type> > sources = None > verbose = 4 > words = set() >----------------------------- Captured stdout call ----------------------------- >Using aspell to spellcheck html_css >Running Task: html_css... > >> Processing: @test_66_tmp_dir/test.txt > >b'cccc dddd eeee ffff gggg llll ' >Command: ['/usr/bin/aspell', 'list', '--encoding', 'utf-8', '--lang', 'en', '-d', 'en_US', '--mode', 'none'] >Context: @test_66_tmp_dir/test.txt: html>body >Traceback (most recent call last): > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline > wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker > return get_process_output(process, encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output > raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors='replace'))) >RuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading. > > >b'aaaa ' >Command: ['/usr/bin/aspell', 'list', '--encoding', 'utf-8', '--lang', 'en', '-d', 'en_US', '--mode', 'none'] >Context: @test_66_tmp_dir/test.txt: html>body>p >Traceback (most recent call last): > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline > wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker > return get_process_output(process, encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output > raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors='replace'))) >RuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading. > > >b'bbbb ' >Command: ['/usr/bin/aspell', 'list', '--encoding', 'utf-8', '--lang', 'en', '-d', 'en_US', '--mode', 'none'] >Context: @test_66_tmp_dir/test.txt: html>body>p >Traceback (most recent call last): > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline > wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker > return get_process_output(process, encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output > raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors='replace'))) >RuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading. > > >b'hhhh ' >Command: ['/usr/bin/aspell', 'list', '--encoding', 'utf-8', '--lang', 'en', '-d', 'en_US', '--mode', 'none'] >Context: @test_66_tmp_dir/test.txt: html>body>p >Traceback (most recent call last): > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline > wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker > return get_process_output(process, encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output > raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors='replace'))) >RuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading. > > >b'iiii ' >Command: ['/usr/bin/aspell', 'list', '--encoding', 'utf-8', '--lang', 'en', '-d', 'en_US', '--mode', 'none'] >Context: @test_66_tmp_dir/test.txt: html>body>p >Traceback (most recent call last): > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline > wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker > return get_process_output(process, encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output > raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors='replace'))) >RuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading. > > >b'jjjj ' >Command: ['/usr/bin/aspell', 'list', '--encoding', 'utf-8', '--lang', 'en', '-d', 'en_US', '--mode', 'none'] >Context: @test_66_tmp_dir/test.txt: html>body>p >Traceback (most recent call last): > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline > wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker > return get_process_output(process, encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output > raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors='replace'))) >RuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading. > > >__________________ TestHtml5NthSelectors.test_css_nth_child1 ___________________ > >self = <tests.filters.test_html.TestHtml5NthSelectors testMethod=test_css_nth_child1> > > def test_css_nth_child1(self): > """Test HTML.""" > > config = self.dedent( > """ > matrix: > - name: html_css > sources: > - '{}/**/*.txt' > aspell: > lang: en > d: en_US > hunspell: > d: en_US > pipeline: > - pyspelling.filters.html: > mode: html5 > ignores: > - 'p:nth-child(2)' > """ > ).format(self.tempdir) > self.mktemp('.html5.yml', config, 'utf-8') >> self.assert_spellcheck( > '.html5.yml', [ > 'aaaa', 'cccc', 'dddd', 'eeee', 'ffff', 'gggg', 'hhhh', 'iiii', 'jjjj', 'kkkk', 'llll' > ] > ) > >config = ('matrix:\n' > '- name: html_css\n' > ' sources:\n' > " - '@test_66_tmp_dir/**/*.txt'\n" > ' aspell:\n' > ' lang: en\n' > ' d: en_US\n' > ' hunspell:\n' > ' d: en_US\n' > ' pipeline:\n' > ' - pyspelling.filters.html:\n' > ' mode: html5\n' > ' ignores:\n' > " - 'p:nth-child(2)'\n") >self = <tests.filters.test_html.TestHtml5NthSelectors testMethod=test_css_nth_child1> > >tests/filters/test_html.py:737: >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ >tests/util.py:232: in assert_spellcheck > self.assertEqual(sorted(expected), sorted(list(words))) >E AssertionError: Lists differ: ['aaaa', 'cccc', 'dddd', 'eeee', 'ffff', '[41 chars]lll'] != [] >E >E First list contains 11 additional elements. >E First extra element 0: >E 'aaaa' >E >E + [] >E - ['aaaa', >E - 'cccc', >E - 'dddd', >E - 'eeee', >E - 'ffff', >E - 'gggg', >E - 'hhhh', >E - 'iiii', >E - 'jjjj', >E - 'kkkk', >E - 'llll'] > aspell_location = '/usr/bin/aspell' > config_file = '.html5.yml' > expected = ['aaaa', > 'cccc', > 'dddd', > 'eeee', > 'ffff', > 'gggg', > 'hhhh', > 'iiii', > 'jjjj', > 'kkkk', > 'llll'] > groups = None > hunspell_location = None > names = None > results = Results(words=[], context='@test_66_tmp_dir/test.txt: html>body>p', category='html5content', error='Traceback (most recent call last):\n File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline\n wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding)\n File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker\n return get_process_output(process, encoding)\n File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output\n raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors=\'replace\')))\nRuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading.\n') > running = 'aspell' > self = <tests.filters.test_html.TestHtml5NthSelectors testMethod=test_css_nth_child1> > sources = None > verbose = 4 > words = set() >----------------------------- Captured stdout call ----------------------------- >Using aspell to spellcheck html_css >Running Task: html_css... > >> Processing: @test_66_tmp_dir/test.txt > >b'cccc dddd eeee ffff gggg llll ' >Command: ['/usr/bin/aspell', 'list', '--encoding', 'utf-8', '--lang', 'en', '-d', 'en_US', '--mode', 'none'] >Context: @test_66_tmp_dir/test.txt: html>body >Traceback (most recent call last): > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline > wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker > return get_process_output(process, encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output > raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors='replace'))) >RuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading. > > >b'aaaa ' >Command: ['/usr/bin/aspell', 'list', '--encoding', 'utf-8', '--lang', 'en', '-d', 'en_US', '--mode', 'none'] >Context: @test_66_tmp_dir/test.txt: html>body>p >Traceback (most recent call last): > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline > wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker > return get_process_output(process, encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output > raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors='replace'))) >RuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading. > > >b'hhhh ' >Command: ['/usr/bin/aspell', 'list', '--encoding', 'utf-8', '--lang', 'en', '-d', 'en_US', '--mode', 'none'] >Context: @test_66_tmp_dir/test.txt: html>body>p >Traceback (most recent call last): > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline > wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker > return get_process_output(process, encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output > raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors='replace'))) >RuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading. > > >b'iiii ' >Command: ['/usr/bin/aspell', 'list', '--encoding', 'utf-8', '--lang', 'en', '-d', 'en_US', '--mode', 'none'] >Context: @test_66_tmp_dir/test.txt: html>body>p >Traceback (most recent call last): > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline > wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker > return get_process_output(process, encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output > raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors='replace'))) >RuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading. > > >b'jjjj ' >Command: ['/usr/bin/aspell', 'list', '--encoding', 'utf-8', '--lang', 'en', '-d', 'en_US', '--mode', 'none'] >Context: @test_66_tmp_dir/test.txt: html>body>p >Traceback (most recent call last): > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline > wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker > return get_process_output(process, encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output > raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors='replace'))) >RuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading. > > >b'kkkk ' >Command: ['/usr/bin/aspell', 'list', '--encoding', 'utf-8', '--lang', 'en', '-d', 'en_US', '--mode', 'none'] >Context: @test_66_tmp_dir/test.txt: html>body>p >Traceback (most recent call last): > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline > wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker > return get_process_output(process, encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output > raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors='replace'))) >RuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading. > > >__________________ TestHtml5NthSelectors.test_css_nth_child2 ___________________ > >self = <tests.filters.test_html.TestHtml5NthSelectors testMethod=test_css_nth_child2> > > def test_css_nth_child2(self): > """Test HTML.""" > > config = self.dedent( > """ > matrix: > - name: html_css > sources: > - '{}/**/*.txt' > aspell: > lang: en > d: en_US > hunspell: > d: en_US > pipeline: > - pyspelling.filters.html: > mode: html5 > ignores: > - 'p:nth-child(9n - 1)' > """ > ).format(self.tempdir) > self.mktemp('.html5.yml', config, 'utf-8') >> self.assert_spellcheck( > '.html5.yml', [ > 'aaaa', 'bbbb', 'cccc', 'dddd', 'eeee', 'ffff', 'gggg', 'iiii', 'jjjj', 'kkkk', 'llll' > ] > ) > >config = ('matrix:\n' > '- name: html_css\n' > ' sources:\n' > " - '@test_66_tmp_dir/**/*.txt'\n" > ' aspell:\n' > ' lang: en\n' > ' d: en_US\n' > ' hunspell:\n' > ' d: en_US\n' > ' pipeline:\n' > ' - pyspelling.filters.html:\n' > ' mode: html5\n' > ' ignores:\n' > " - 'p:nth-child(9n - 1)'\n") >self = <tests.filters.test_html.TestHtml5NthSelectors testMethod=test_css_nth_child2> > >tests/filters/test_html.py:765: >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ >tests/util.py:232: in assert_spellcheck > self.assertEqual(sorted(expected), sorted(list(words))) >E AssertionError: Lists differ: ['aaaa', 'bbbb', 'cccc', 'dddd', 'eeee', '[41 chars]lll'] != [] >E >E First list contains 11 additional elements. >E First extra element 0: >E 'aaaa' >E >E + [] >E - ['aaaa', >E - 'bbbb', >E - 'cccc', >E - 'dddd', >E - 'eeee', >E - 'ffff', >E - 'gggg', >E - 'iiii', >E - 'jjjj', >E - 'kkkk', >E - 'llll'] > aspell_location = '/usr/bin/aspell' > config_file = '.html5.yml' > expected = ['aaaa', > 'bbbb', > 'cccc', > 'dddd', > 'eeee', > 'ffff', > 'gggg', > 'iiii', > 'jjjj', > 'kkkk', > 'llll'] > groups = None > hunspell_location = None > names = None > results = Results(words=[], context='@test_66_tmp_dir/test.txt: html>body>p', category='html5content', error='Traceback (most recent call last):\n File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline\n wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding)\n File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker\n return get_process_output(process, encoding)\n File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output\n raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors=\'replace\')))\nRuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading.\n') > running = 'aspell' > self = <tests.filters.test_html.TestHtml5NthSelectors testMethod=test_css_nth_child2> > sources = None > verbose = 4 > words = set() >----------------------------- Captured stdout call ----------------------------- >Using aspell to spellcheck html_css >Running Task: html_css... > >> Processing: @test_66_tmp_dir/test.txt > >b'cccc dddd eeee ffff gggg llll ' >Command: ['/usr/bin/aspell', 'list', '--encoding', 'utf-8', '--lang', 'en', '-d', 'en_US', '--mode', 'none'] >Context: @test_66_tmp_dir/test.txt: html>body >Traceback (most recent call last): > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline > wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker > return get_process_output(process, encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output > raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors='replace'))) >RuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading. > > >b'aaaa ' >Command: ['/usr/bin/aspell', 'list', '--encoding', 'utf-8', '--lang', 'en', '-d', 'en_US', '--mode', 'none'] >Context: @test_66_tmp_dir/test.txt: html>body>p >Traceback (most recent call last): > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline > wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker > return get_process_output(process, encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output > raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors='replace'))) >RuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading. > > >b'bbbb ' >Command: ['/usr/bin/aspell', 'list', '--encoding', 'utf-8', '--lang', 'en', '-d', 'en_US', '--mode', 'none'] >Context: @test_66_tmp_dir/test.txt: html>body>p >Traceback (most recent call last): > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline > wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker > return get_process_output(process, encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output > raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors='replace'))) >RuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading. > > >b'iiii ' >Command: ['/usr/bin/aspell', 'list', '--encoding', 'utf-8', '--lang', 'en', '-d', 'en_US', '--mode', 'none'] >Context: @test_66_tmp_dir/test.txt: html>body>p >Traceback (most recent call last): > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline > wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker > return get_process_output(process, encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output > raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors='replace'))) >RuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading. > > >b'jjjj ' >Command: ['/usr/bin/aspell', 'list', '--encoding', 'utf-8', '--lang', 'en', '-d', 'en_US', '--mode', 'none'] >Context: @test_66_tmp_dir/test.txt: html>body>p >Traceback (most recent call last): > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline > wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker > return get_process_output(process, encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output > raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors='replace'))) >RuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading. > > >b'kkkk ' >Command: ['/usr/bin/aspell', 'list', '--encoding', 'utf-8', '--lang', 'en', '-d', 'en_US', '--mode', 'none'] >Context: @test_66_tmp_dir/test.txt: html>body>p >Traceback (most recent call last): > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline > wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker > return get_process_output(process, encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output > raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors='replace'))) >RuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading. > > >__________________ TestHtml5NthSelectors.test_css_nth_child3 ___________________ > >self = <tests.filters.test_html.TestHtml5NthSelectors testMethod=test_css_nth_child3> > > def test_css_nth_child3(self): > """Test HTML.""" > > config = self.dedent( > """ > matrix: > - name: html_css > sources: > - '{}/**/*.txt' > aspell: > lang: en > d: en_US > hunspell: > d: en_US > pipeline: > - pyspelling.filters.html: > mode: html5 > ignores: > - 'p:nth-child(2n + 1)' > """ > ).format(self.tempdir) > self.mktemp('.html5.yml', config, 'utf-8') >> self.assert_spellcheck( > '.html5.yml', [ > 'bbbb', 'cccc', 'dddd', 'eeee', 'ffff', 'gggg', 'hhhh', 'jjjj', 'llll' > ] > ) > >config = ('matrix:\n' > '- name: html_css\n' > ' sources:\n' > " - '@test_66_tmp_dir/**/*.txt'\n" > ' aspell:\n' > ' lang: en\n' > ' d: en_US\n' > ' hunspell:\n' > ' d: en_US\n' > ' pipeline:\n' > ' - pyspelling.filters.html:\n' > ' mode: html5\n' > ' ignores:\n' > " - 'p:nth-child(2n + 1)'\n") >self = <tests.filters.test_html.TestHtml5NthSelectors testMethod=test_css_nth_child3> > >tests/filters/test_html.py:793: >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ >tests/util.py:232: in assert_spellcheck > self.assertEqual(sorted(expected), sorted(list(words))) >E AssertionError: Lists differ: ['bbbb', 'cccc', 'dddd', 'eeee', 'ffff', 'gggg', 'hhhh', 'jjjj', 'llll'] != [] >E >E First list contains 9 additional elements. >E First extra element 0: >E 'bbbb' >E >E - ['bbbb', 'cccc', 'dddd', 'eeee', 'ffff', 'gggg', 'hhhh', 'jjjj', 'llll'] >E + [] > aspell_location = '/usr/bin/aspell' > config_file = '.html5.yml' > expected = ['bbbb', 'cccc', 'dddd', 'eeee', 'ffff', 'gggg', 'hhhh', 'jjjj', 'llll'] > groups = None > hunspell_location = None > names = None > results = Results(words=[], context='@test_66_tmp_dir/test.txt: html>body>p', category='html5content', error='Traceback (most recent call last):\n File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline\n wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding)\n File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker\n return get_process_output(process, encoding)\n File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output\n raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors=\'replace\')))\nRuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading.\n') > running = 'aspell' > self = <tests.filters.test_html.TestHtml5NthSelectors testMethod=test_css_nth_child3> > sources = None > verbose = 4 > words = set() >----------------------------- Captured stdout call ----------------------------- >Using aspell to spellcheck html_css >Running Task: html_css... > >> Processing: @test_66_tmp_dir/test.txt > >b'cccc dddd eeee ffff gggg llll ' >Command: ['/usr/bin/aspell', 'list', '--encoding', 'utf-8', '--lang', 'en', '-d', 'en_US', '--mode', 'none'] >Context: @test_66_tmp_dir/test.txt: html>body >Traceback (most recent call last): > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline > wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker > return get_process_output(process, encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output > raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors='replace'))) >RuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading. > > >b'bbbb ' >Command: ['/usr/bin/aspell', 'list', '--encoding', 'utf-8', '--lang', 'en', '-d', 'en_US', '--mode', 'none'] >Context: @test_66_tmp_dir/test.txt: html>body>p >Traceback (most recent call last): > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline > wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker > return get_process_output(process, encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output > raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors='replace'))) >RuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading. > > >b'hhhh ' >Command: ['/usr/bin/aspell', 'list', '--encoding', 'utf-8', '--lang', 'en', '-d', 'en_US', '--mode', 'none'] >Context: @test_66_tmp_dir/test.txt: html>body>p >Traceback (most recent call last): > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline > wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker > return get_process_output(process, encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output > raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors='replace'))) >RuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading. > > >b'jjjj ' >Command: ['/usr/bin/aspell', 'list', '--encoding', 'utf-8', '--lang', 'en', '-d', 'en_US', '--mode', 'none'] >Context: @test_66_tmp_dir/test.txt: html>body>p >Traceback (most recent call last): > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline > wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker > return get_process_output(process, encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output > raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors='replace'))) >RuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading. > > >_________________ TestHtml5NthSelectors.test_css_nth_child_bad _________________ > >self = <tests.filters.test_html.TestHtml5NthSelectors testMethod=test_css_nth_child_bad> > > def test_css_nth_child_bad(self): > """Test HTML.""" > > config = self.dedent( > """ > matrix: > - name: html_css > sources: > - '{}/**/*.txt' > aspell: > lang: en > d: en_US > hunspell: > d: en_US > pipeline: > - pyspelling.filters.html: > mode: html5 > ignores: > - 'p:nth-child(-2)' > """ > ).format(self.tempdir) > self.mktemp('.html5.yml', config, 'utf-8') >> self.assert_spellcheck( > '.html5.yml', [ > 'aaaa', 'bbbb', 'cccc', 'dddd', 'eeee', 'ffff', 'gggg', 'hhhh', 'iiii', 'jjjj', 'kkkk', 'llll' > ] > ) > >config = ('matrix:\n' > '- name: html_css\n' > ' sources:\n' > " - '@test_66_tmp_dir/**/*.txt'\n" > ' aspell:\n' > ' lang: en\n' > ' d: en_US\n' > ' hunspell:\n' > ' d: en_US\n' > ' pipeline:\n' > ' - pyspelling.filters.html:\n' > ' mode: html5\n' > ' ignores:\n' > " - 'p:nth-child(-2)'\n") >self = <tests.filters.test_html.TestHtml5NthSelectors testMethod=test_css_nth_child_bad> > >tests/filters/test_html.py:709: >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ >tests/util.py:232: in assert_spellcheck > self.assertEqual(sorted(expected), sorted(list(words))) >E AssertionError: Lists differ: ['aaaa', 'bbbb', 'cccc', 'dddd', 'eeee', '[49 chars]lll'] != [] >E >E First list contains 12 additional elements. >E First extra element 0: >E 'aaaa' >E >E + [] >E - ['aaaa', >E - 'bbbb', >E - 'cccc', >E - 'dddd', >E - 'eeee', >E - 'ffff', >E - 'gggg', >E - 'hhhh', >E - 'iiii', >E - 'jjjj', >E - 'kkkk', >E - 'llll'] > aspell_location = '/usr/bin/aspell' > config_file = '.html5.yml' > expected = ['aaaa', > 'bbbb', > 'cccc', > 'dddd', > 'eeee', > 'ffff', > 'gggg', > 'hhhh', > 'iiii', > 'jjjj', > 'kkkk', > 'llll'] > groups = None > hunspell_location = None > names = None > results = Results(words=[], context='@test_66_tmp_dir/test.txt: html>body>p', category='html5content', error='Traceback (most recent call last):\n File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline\n wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding)\n File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker\n return get_process_output(process, encoding)\n File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output\n raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors=\'replace\')))\nRuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading.\n') > running = 'aspell' > self = <tests.filters.test_html.TestHtml5NthSelectors testMethod=test_css_nth_child_bad> > sources = None > verbose = 4 > words = set() >----------------------------- Captured stdout call ----------------------------- >Using aspell to spellcheck html_css >Running Task: html_css... > >> Processing: @test_66_tmp_dir/test.txt > >b'cccc dddd eeee ffff gggg llll ' >Command: ['/usr/bin/aspell', 'list', '--encoding', 'utf-8', '--lang', 'en', '-d', 'en_US', '--mode', 'none'] >Context: @test_66_tmp_dir/test.txt: html>body >Traceback (most recent call last): > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline > wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker > return get_process_output(process, encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output > raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors='replace'))) >RuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading. > > >b'aaaa ' >Command: ['/usr/bin/aspell', 'list', '--encoding', 'utf-8', '--lang', 'en', '-d', 'en_US', '--mode', 'none'] >Context: @test_66_tmp_dir/test.txt: html>body>p >Traceback (most recent call last): > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline > wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker > return get_process_output(process, encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output > raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors='replace'))) >RuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading. > > >b'bbbb ' >Command: ['/usr/bin/aspell', 'list', '--encoding', 'utf-8', '--lang', 'en', '-d', 'en_US', '--mode', 'none'] >Context: @test_66_tmp_dir/test.txt: html>body>p >Traceback (most recent call last): > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline > wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker > return get_process_output(process, encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output > raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors='replace'))) >RuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading. > > >b'hhhh ' >Command: ['/usr/bin/aspell', 'list', '--encoding', 'utf-8', '--lang', 'en', '-d', 'en_US', '--mode', 'none'] >Context: @test_66_tmp_dir/test.txt: html>body>p >Traceback (most recent call last): > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline > wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker > return get_process_output(process, encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output > raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors='replace'))) >RuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading. > > >b'iiii ' >Command: ['/usr/bin/aspell', 'list', '--encoding', 'utf-8', '--lang', 'en', '-d', 'en_US', '--mode', 'none'] >Context: @test_66_tmp_dir/test.txt: html>body>p >Traceback (most recent call last): > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline > wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker > return get_process_output(process, encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output > raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors='replace'))) >RuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading. > > >b'jjjj ' >Command: ['/usr/bin/aspell', 'list', '--encoding', 'utf-8', '--lang', 'en', '-d', 'en_US', '--mode', 'none'] >Context: @test_66_tmp_dir/test.txt: html>body>p >Traceback (most recent call last): > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline > wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker > return get_process_output(process, encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output > raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors='replace'))) >RuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading. > > >b'kkkk ' >Command: ['/usr/bin/aspell', 'list', '--encoding', 'utf-8', '--lang', 'en', '-d', 'en_US', '--mode', 'none'] >Context: @test_66_tmp_dir/test.txt: html>body>p >Traceback (most recent call last): > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline > wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker > return get_process_output(process, encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output > raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors='replace'))) >RuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading. > > >_______________ TestHtml5NthSelectors.test_css_nth_complex_type ________________ > >self = <tests.filters.test_html.TestHtml5NthSelectors testMethod=test_css_nth_complex_type> > > def test_css_nth_complex_type(self): > """Test HTML.""" > > config = self.dedent( > """ > matrix: > - name: html_css > sources: > - '{}/**/*.txt' > aspell: > lang: en > d: en_US > hunspell: > d: en_US > pipeline: > - pyspelling.filters.html: > mode: html5 > ignores: > - ':nth-of-type(2n + 1):is(p, span)' > """ > ).format(self.tempdir) > self.mktemp('.html5.yml', config, 'utf-8') >> self.assert_spellcheck( > '.html5.yml', [ > 'bbbb', 'dddd', 'ffff', 'iiii', 'kkkk', 'llll' > ] > ) > >config = ('matrix:\n' > '- name: html_css\n' > ' sources:\n' > " - '@test_66_tmp_dir/**/*.txt'\n" > ' aspell:\n' > ' lang: en\n' > ' d: en_US\n' > ' hunspell:\n' > ' d: en_US\n' > ' pipeline:\n' > ' - pyspelling.filters.html:\n' > ' mode: html5\n' > ' ignores:\n' > " - ':nth-of-type(2n + 1):is(p, span)'\n") >self = <tests.filters.test_html.TestHtml5NthSelectors testMethod=test_css_nth_complex_type> > >tests/filters/test_html.py:625: >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ >tests/util.py:232: in assert_spellcheck > self.assertEqual(sorted(expected), sorted(list(words))) >E AssertionError: Lists differ: ['bbbb', 'dddd', 'ffff', 'iiii', 'kkkk', 'llll'] != [] >E >E First list contains 6 additional elements. >E First extra element 0: >E 'bbbb' >E >E - ['bbbb', 'dddd', 'ffff', 'iiii', 'kkkk', 'llll'] >E + [] > aspell_location = '/usr/bin/aspell' > config_file = '.html5.yml' > expected = ['bbbb', 'dddd', 'ffff', 'iiii', 'kkkk', 'llll'] > groups = None > hunspell_location = None > names = None > results = Results(words=[], context='@test_66_tmp_dir/test.txt: html>body>p', category='html5content', error='Traceback (most recent call last):\n File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline\n wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding)\n File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker\n return get_process_output(process, encoding)\n File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output\n raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors=\'replace\')))\nRuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading.\n') > running = 'aspell' > self = <tests.filters.test_html.TestHtml5NthSelectors testMethod=test_css_nth_complex_type> > sources = None > verbose = 4 > words = set() >----------------------------- Captured stdout call ----------------------------- >Using aspell to spellcheck html_css >Running Task: html_css... > >> Processing: @test_66_tmp_dir/test.txt > >b'dddd ffff llll ' >Command: ['/usr/bin/aspell', 'list', '--encoding', 'utf-8', '--lang', 'en', '-d', 'en_US', '--mode', 'none'] >Context: @test_66_tmp_dir/test.txt: html>body >Traceback (most recent call last): > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline > wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker > return get_process_output(process, encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output > raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors='replace'))) >RuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading. > > >b'bbbb ' >Command: ['/usr/bin/aspell', 'list', '--encoding', 'utf-8', '--lang', 'en', '-d', 'en_US', '--mode', 'none'] >Context: @test_66_tmp_dir/test.txt: html>body>p >Traceback (most recent call last): > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline > wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker > return get_process_output(process, encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output > raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors='replace'))) >RuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading. > > >b'iiii ' >Command: ['/usr/bin/aspell', 'list', '--encoding', 'utf-8', '--lang', 'en', '-d', 'en_US', '--mode', 'none'] >Context: @test_66_tmp_dir/test.txt: html>body>p >Traceback (most recent call last): > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline > wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker > return get_process_output(process, encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output > raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors='replace'))) >RuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading. > > >b'kkkk ' >Command: ['/usr/bin/aspell', 'list', '--encoding', 'utf-8', '--lang', 'en', '-d', 'en_US', '--mode', 'none'] >Context: @test_66_tmp_dir/test.txt: html>body>p >Traceback (most recent call last): > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline > wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker > return get_process_output(process, encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output > raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors='replace'))) >RuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading. > > >___________________ TestHtml5NthSelectors.test_css_nth_even ____________________ > >self = <tests.filters.test_html.TestHtml5NthSelectors testMethod=test_css_nth_even> > > def test_css_nth_even(self): > """Test HTML.""" > > config = self.dedent( > """ > matrix: > - name: html_css > sources: > - '{}/**/*.txt' > aspell: > lang: en > d: en_US > hunspell: > d: en_US > pipeline: > - pyspelling.filters.html: > mode: html5 > ignores: > - 'p:nth-child(even)' > """ > ).format(self.tempdir) > self.mktemp('.html5.yml', config, 'utf-8') >> self.assert_spellcheck( > '.html5.yml', [ > 'aaaa', 'cccc', 'dddd', 'eeee', 'ffff', 'gggg', 'iiii', 'kkkk', 'llll' > ] > ) > >config = ('matrix:\n' > '- name: html_css\n' > ' sources:\n' > " - '@test_66_tmp_dir/**/*.txt'\n" > ' aspell:\n' > ' lang: en\n' > ' d: en_US\n' > ' hunspell:\n' > ' d: en_US\n' > ' pipeline:\n' > ' - pyspelling.filters.html:\n' > ' mode: html5\n' > ' ignores:\n' > " - 'p:nth-child(even)'\n") >self = <tests.filters.test_html.TestHtml5NthSelectors testMethod=test_css_nth_even> > >tests/filters/test_html.py:681: >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ >tests/util.py:232: in assert_spellcheck > self.assertEqual(sorted(expected), sorted(list(words))) >E AssertionError: Lists differ: ['aaaa', 'cccc', 'dddd', 'eeee', 'ffff', 'gggg', 'iiii', 'kkkk', 'llll'] != [] >E >E First list contains 9 additional elements. >E First extra element 0: >E 'aaaa' >E >E - ['aaaa', 'cccc', 'dddd', 'eeee', 'ffff', 'gggg', 'iiii', 'kkkk', 'llll'] >E + [] > aspell_location = '/usr/bin/aspell' > config_file = '.html5.yml' > expected = ['aaaa', 'cccc', 'dddd', 'eeee', 'ffff', 'gggg', 'iiii', 'kkkk', 'llll'] > groups = None > hunspell_location = None > names = None > results = Results(words=[], context='@test_66_tmp_dir/test.txt: html>body>p', category='html5content', error='Traceback (most recent call last):\n File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline\n wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding)\n File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker\n return get_process_output(process, encoding)\n File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output\n raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors=\'replace\')))\nRuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading.\n') > running = 'aspell' > self = <tests.filters.test_html.TestHtml5NthSelectors testMethod=test_css_nth_even> > sources = None > verbose = 4 > words = set() >----------------------------- Captured stdout call ----------------------------- >Using aspell to spellcheck html_css >Running Task: html_css... > >> Processing: @test_66_tmp_dir/test.txt > >b'cccc dddd eeee ffff gggg llll ' >Command: ['/usr/bin/aspell', 'list', '--encoding', 'utf-8', '--lang', 'en', '-d', 'en_US', '--mode', 'none'] >Context: @test_66_tmp_dir/test.txt: html>body >Traceback (most recent call last): > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline > wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker > return get_process_output(process, encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output > raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors='replace'))) >RuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading. > > >b'aaaa ' >Command: ['/usr/bin/aspell', 'list', '--encoding', 'utf-8', '--lang', 'en', '-d', 'en_US', '--mode', 'none'] >Context: @test_66_tmp_dir/test.txt: html>body>p >Traceback (most recent call last): > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline > wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker > return get_process_output(process, encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output > raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors='replace'))) >RuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading. > > >b'iiii ' >Command: ['/usr/bin/aspell', 'list', '--encoding', 'utf-8', '--lang', 'en', '-d', 'en_US', '--mode', 'none'] >Context: @test_66_tmp_dir/test.txt: html>body>p >Traceback (most recent call last): > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline > wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker > return get_process_output(process, encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output > raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors='replace'))) >RuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading. > > >b'kkkk ' >Command: ['/usr/bin/aspell', 'list', '--encoding', 'utf-8', '--lang', 'en', '-d', 'en_US', '--mode', 'none'] >Context: @test_66_tmp_dir/test.txt: html>body>p >Traceback (most recent call last): > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline > wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker > return get_process_output(process, encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output > raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors='replace'))) >RuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading. > > >________________ TestHtml5NthSelectors.test_css_nth_last_child _________________ > >self = <tests.filters.test_html.TestHtml5NthSelectors testMethod=test_css_nth_last_child> > > def test_css_nth_last_child(self): > """Test HTML.""" > > config = self.dedent( > """ > matrix: > - name: html_css > sources: > - '{}/**/*.txt' > aspell: > lang: en > d: en_US > hunspell: > d: en_US > pipeline: > - pyspelling.filters.html: > mode: html5 > ignores: > - 'p:nth-last-child(2n + 1)' > """ > ).format(self.tempdir) > self.mktemp('.html5.yml', config, 'utf-8') >> self.assert_spellcheck( > '.html5.yml', [ > 'aaaa', 'cccc', 'dddd', 'eeee', 'ffff', 'gggg', 'iiii', 'kkkk', 'llll' > ] > ) > >config = ('matrix:\n' > '- name: html_css\n' > ' sources:\n' > " - '@test_66_tmp_dir/**/*.txt'\n" > ' aspell:\n' > ' lang: en\n' > ' d: en_US\n' > ' hunspell:\n' > ' d: en_US\n' > ' pipeline:\n' > ' - pyspelling.filters.html:\n' > ' mode: html5\n' > ' ignores:\n' > " - 'p:nth-last-child(2n + 1)'\n") >self = <tests.filters.test_html.TestHtml5NthSelectors testMethod=test_css_nth_last_child> > >tests/filters/test_html.py:849: >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ >tests/util.py:232: in assert_spellcheck > self.assertEqual(sorted(expected), sorted(list(words))) >E AssertionError: Lists differ: ['aaaa', 'cccc', 'dddd', 'eeee', 'ffff', 'gggg', 'iiii', 'kkkk', 'llll'] != [] >E >E First list contains 9 additional elements. >E First extra element 0: >E 'aaaa' >E >E - ['aaaa', 'cccc', 'dddd', 'eeee', 'ffff', 'gggg', 'iiii', 'kkkk', 'llll'] >E + [] > aspell_location = '/usr/bin/aspell' > config_file = '.html5.yml' > expected = ['aaaa', 'cccc', 'dddd', 'eeee', 'ffff', 'gggg', 'iiii', 'kkkk', 'llll'] > groups = None > hunspell_location = None > names = None > results = Results(words=[], context='@test_66_tmp_dir/test.txt: html>body>p', category='html5content', error='Traceback (most recent call last):\n File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline\n wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding)\n File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker\n return get_process_output(process, encoding)\n File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output\n raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors=\'replace\')))\nRuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading.\n') > running = 'aspell' > self = <tests.filters.test_html.TestHtml5NthSelectors testMethod=test_css_nth_last_child> > sources = None > verbose = 4 > words = set() >----------------------------- Captured stdout call ----------------------------- >Using aspell to spellcheck html_css >Running Task: html_css... > >> Processing: @test_66_tmp_dir/test.txt > >b'cccc dddd eeee ffff gggg llll ' >Command: ['/usr/bin/aspell', 'list', '--encoding', 'utf-8', '--lang', 'en', '-d', 'en_US', '--mode', 'none'] >Context: @test_66_tmp_dir/test.txt: html>body >Traceback (most recent call last): > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline > wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker > return get_process_output(process, encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output > raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors='replace'))) >RuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading. > > >b'aaaa ' >Command: ['/usr/bin/aspell', 'list', '--encoding', 'utf-8', '--lang', 'en', '-d', 'en_US', '--mode', 'none'] >Context: @test_66_tmp_dir/test.txt: html>body>p >Traceback (most recent call last): > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline > wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker > return get_process_output(process, encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output > raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors='replace'))) >RuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading. > > >b'iiii ' >Command: ['/usr/bin/aspell', 'list', '--encoding', 'utf-8', '--lang', 'en', '-d', 'en_US', '--mode', 'none'] >Context: @test_66_tmp_dir/test.txt: html>body>p >Traceback (most recent call last): > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline > wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker > return get_process_output(process, encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output > raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors='replace'))) >RuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading. > > >b'kkkk ' >Command: ['/usr/bin/aspell', 'list', '--encoding', 'utf-8', '--lang', 'en', '-d', 'en_US', '--mode', 'none'] >Context: @test_66_tmp_dir/test.txt: html>body>p >Traceback (most recent call last): > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline > wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker > return get_process_output(process, encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output > raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors='replace'))) >RuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading. > > >_________________ TestHtml5NthSelectors.test_css_nth_last_type _________________ > >self = <tests.filters.test_html.TestHtml5NthSelectors testMethod=test_css_nth_last_type> > > def test_css_nth_last_type(self): > """Test HTML.""" > > config = self.dedent( > """ > matrix: > - name: html_css > sources: > - '{}/**/*.txt' > aspell: > lang: en > d: en_US > hunspell: > d: en_US > pipeline: > - pyspelling.filters.html: > mode: html5 > ignores: > - 'p:nth-last-of-type(2n + 1)' > """ > ).format(self.tempdir) > self.mktemp('.html5.yml', config, 'utf-8') >> self.assert_spellcheck( > '.html5.yml', [ > 'aaaa', 'cccc', 'dddd', 'eeee', 'ffff', 'gggg', 'jjjj', 'hhhh', 'llll' > ] > ) > >config = ('matrix:\n' > '- name: html_css\n' > ' sources:\n' > " - '@test_66_tmp_dir/**/*.txt'\n" > ' aspell:\n' > ' lang: en\n' > ' d: en_US\n' > ' hunspell:\n' > ' d: en_US\n' > ' pipeline:\n' > ' - pyspelling.filters.html:\n' > ' mode: html5\n' > ' ignores:\n' > " - 'p:nth-last-of-type(2n + 1)'\n") >self = <tests.filters.test_html.TestHtml5NthSelectors testMethod=test_css_nth_last_type> > >tests/filters/test_html.py:821: >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ >tests/util.py:232: in assert_spellcheck > self.assertEqual(sorted(expected), sorted(list(words))) >E AssertionError: Lists differ: ['aaaa', 'cccc', 'dddd', 'eeee', 'ffff', 'gggg', 'hhhh', 'jjjj', 'llll'] != [] >E >E First list contains 9 additional elements. >E First extra element 0: >E 'aaaa' >E >E - ['aaaa', 'cccc', 'dddd', 'eeee', 'ffff', 'gggg', 'hhhh', 'jjjj', 'llll'] >E + [] > aspell_location = '/usr/bin/aspell' > config_file = '.html5.yml' > expected = ['aaaa', 'cccc', 'dddd', 'eeee', 'ffff', 'gggg', 'jjjj', 'hhhh', 'llll'] > groups = None > hunspell_location = None > names = None > results = Results(words=[], context='@test_66_tmp_dir/test.txt: html>body>p', category='html5content', error='Traceback (most recent call last):\n File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline\n wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding)\n File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker\n return get_process_output(process, encoding)\n File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output\n raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors=\'replace\')))\nRuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading.\n') > running = 'aspell' > self = <tests.filters.test_html.TestHtml5NthSelectors testMethod=test_css_nth_last_type> > sources = None > verbose = 4 > words = set() >----------------------------- Captured stdout call ----------------------------- >Using aspell to spellcheck html_css >Running Task: html_css... > >> Processing: @test_66_tmp_dir/test.txt > >b'cccc dddd eeee ffff gggg llll ' >Command: ['/usr/bin/aspell', 'list', '--encoding', 'utf-8', '--lang', 'en', '-d', 'en_US', '--mode', 'none'] >Context: @test_66_tmp_dir/test.txt: html>body >Traceback (most recent call last): > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline > wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker > return get_process_output(process, encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output > raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors='replace'))) >RuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading. > > >b'aaaa ' >Command: ['/usr/bin/aspell', 'list', '--encoding', 'utf-8', '--lang', 'en', '-d', 'en_US', '--mode', 'none'] >Context: @test_66_tmp_dir/test.txt: html>body>p >Traceback (most recent call last): > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline > wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker > return get_process_output(process, encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output > raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors='replace'))) >RuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading. > > >b'hhhh ' >Command: ['/usr/bin/aspell', 'list', '--encoding', 'utf-8', '--lang', 'en', '-d', 'en_US', '--mode', 'none'] >Context: @test_66_tmp_dir/test.txt: html>body>p >Traceback (most recent call last): > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline > wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker > return get_process_output(process, encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output > raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors='replace'))) >RuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading. > > >b'jjjj ' >Command: ['/usr/bin/aspell', 'list', '--encoding', 'utf-8', '--lang', 'en', '-d', 'en_US', '--mode', 'none'] >Context: @test_66_tmp_dir/test.txt: html>body>p >Traceback (most recent call last): > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline > wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker > return get_process_output(process, encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output > raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors='replace'))) >RuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading. > > >____________________ TestHtml5NthSelectors.test_css_nth_odd ____________________ > >self = <tests.filters.test_html.TestHtml5NthSelectors testMethod=test_css_nth_odd> > > def test_css_nth_odd(self): > """Test HTML.""" > > config = self.dedent( > """ > matrix: > - name: html_css > sources: > - '{}/**/*.txt' > aspell: > lang: en > d: en_US > hunspell: > d: en_US > pipeline: > - pyspelling.filters.html: > mode: html5 > ignores: > - 'p:nth-child(odd)' > """ > ).format(self.tempdir) > self.mktemp('.html5.yml', config, 'utf-8') >> self.assert_spellcheck( > '.html5.yml', [ > 'bbbb', 'cccc', 'dddd', 'eeee', 'ffff', 'gggg', 'hhhh', 'jjjj', 'llll' > ] > ) > >config = ('matrix:\n' > '- name: html_css\n' > ' sources:\n' > " - '@test_66_tmp_dir/**/*.txt'\n" > ' aspell:\n' > ' lang: en\n' > ' d: en_US\n' > ' hunspell:\n' > ' d: en_US\n' > ' pipeline:\n' > ' - pyspelling.filters.html:\n' > ' mode: html5\n' > ' ignores:\n' > " - 'p:nth-child(odd)'\n") >self = <tests.filters.test_html.TestHtml5NthSelectors testMethod=test_css_nth_odd> > >tests/filters/test_html.py:653: >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ >tests/util.py:232: in assert_spellcheck > self.assertEqual(sorted(expected), sorted(list(words))) >E AssertionError: Lists differ: ['bbbb', 'cccc', 'dddd', 'eeee', 'ffff', 'gggg', 'hhhh', 'jjjj', 'llll'] != [] >E >E First list contains 9 additional elements. >E First extra element 0: >E 'bbbb' >E >E - ['bbbb', 'cccc', 'dddd', 'eeee', 'ffff', 'gggg', 'hhhh', 'jjjj', 'llll'] >E + [] > aspell_location = '/usr/bin/aspell' > config_file = '.html5.yml' > expected = ['bbbb', 'cccc', 'dddd', 'eeee', 'ffff', 'gggg', 'hhhh', 'jjjj', 'llll'] > groups = None > hunspell_location = None > names = None > results = Results(words=[], context='@test_66_tmp_dir/test.txt: html>body>p', category='html5content', error='Traceback (most recent call last):\n File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline\n wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding)\n File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker\n return get_process_output(process, encoding)\n File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output\n raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors=\'replace\')))\nRuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading.\n') > running = 'aspell' > self = <tests.filters.test_html.TestHtml5NthSelectors testMethod=test_css_nth_odd> > sources = None > verbose = 4 > words = set() >----------------------------- Captured stdout call ----------------------------- >Using aspell to spellcheck html_css >Running Task: html_css... > >> Processing: @test_66_tmp_dir/test.txt > >b'cccc dddd eeee ffff gggg llll ' >Command: ['/usr/bin/aspell', 'list', '--encoding', 'utf-8', '--lang', 'en', '-d', 'en_US', '--mode', 'none'] >Context: @test_66_tmp_dir/test.txt: html>body >Traceback (most recent call last): > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline > wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker > return get_process_output(process, encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output > raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors='replace'))) >RuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading. > > >b'bbbb ' >Command: ['/usr/bin/aspell', 'list', '--encoding', 'utf-8', '--lang', 'en', '-d', 'en_US', '--mode', 'none'] >Context: @test_66_tmp_dir/test.txt: html>body>p >Traceback (most recent call last): > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline > wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker > return get_process_output(process, encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output > raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors='replace'))) >RuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading. > > >b'hhhh ' >Command: ['/usr/bin/aspell', 'list', '--encoding', 'utf-8', '--lang', 'en', '-d', 'en_US', '--mode', 'none'] >Context: @test_66_tmp_dir/test.txt: html>body>p >Traceback (most recent call last): > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline > wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker > return get_process_output(process, encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output > raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors='replace'))) >RuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading. > > >b'jjjj ' >Command: ['/usr/bin/aspell', 'list', '--encoding', 'utf-8', '--lang', 'en', '-d', 'en_US', '--mode', 'none'] >Context: @test_66_tmp_dir/test.txt: html>body>p >Traceback (most recent call last): > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline > wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker > return get_process_output(process, encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output > raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors='replace'))) >RuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading. > > >___________________ TestHtml5NthSelectors.test_css_nth_type ____________________ > >self = <tests.filters.test_html.TestHtml5NthSelectors testMethod=test_css_nth_type> > > def test_css_nth_type(self): > """Test HTML.""" > > config = self.dedent( > """ > matrix: > - name: html_css > sources: > - '{}/**/*.txt' > aspell: > lang: en > d: en_US > hunspell: > d: en_US > pipeline: > - pyspelling.filters.html: > mode: html5 > ignores: > - 'p:nth-of-type(2n + 1)' > """ > ).format(self.tempdir) > self.mktemp('.html5.yml', config, 'utf-8') >> self.assert_spellcheck( > '.html5.yml', [ > 'bbbb', 'cccc', 'dddd', 'eeee', 'ffff', 'gggg', 'iiii', 'kkkk', 'llll' > ] > ) > >config = ('matrix:\n' > '- name: html_css\n' > ' sources:\n' > " - '@test_66_tmp_dir/**/*.txt'\n" > ' aspell:\n' > ' lang: en\n' > ' d: en_US\n' > ' hunspell:\n' > ' d: en_US\n' > ' pipeline:\n' > ' - pyspelling.filters.html:\n' > ' mode: html5\n' > ' ignores:\n' > " - 'p:nth-of-type(2n + 1)'\n") >self = <tests.filters.test_html.TestHtml5NthSelectors testMethod=test_css_nth_type> > >tests/filters/test_html.py:597: >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ >tests/util.py:232: in assert_spellcheck > self.assertEqual(sorted(expected), sorted(list(words))) >E AssertionError: Lists differ: ['bbbb', 'cccc', 'dddd', 'eeee', 'ffff', 'gggg', 'iiii', 'kkkk', 'llll'] != [] >E >E First list contains 9 additional elements. >E First extra element 0: >E 'bbbb' >E >E - ['bbbb', 'cccc', 'dddd', 'eeee', 'ffff', 'gggg', 'iiii', 'kkkk', 'llll'] >E + [] > aspell_location = '/usr/bin/aspell' > config_file = '.html5.yml' > expected = ['bbbb', 'cccc', 'dddd', 'eeee', 'ffff', 'gggg', 'iiii', 'kkkk', 'llll'] > groups = None > hunspell_location = None > names = None > results = Results(words=[], context='@test_66_tmp_dir/test.txt: html>body>p', category='html5content', error='Traceback (most recent call last):\n File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline\n wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding)\n File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker\n return get_process_output(process, encoding)\n File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output\n raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors=\'replace\')))\nRuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading.\n') > running = 'aspell' > self = <tests.filters.test_html.TestHtml5NthSelectors testMethod=test_css_nth_type> > sources = None > verbose = 4 > words = set() >----------------------------- Captured stdout call ----------------------------- >Using aspell to spellcheck html_css >Running Task: html_css... > >> Processing: @test_66_tmp_dir/test.txt > >b'cccc dddd eeee ffff gggg llll ' >Command: ['/usr/bin/aspell', 'list', '--encoding', 'utf-8', '--lang', 'en', '-d', 'en_US', '--mode', 'none'] >Context: @test_66_tmp_dir/test.txt: html>body >Traceback (most recent call last): > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline > wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker > return get_process_output(process, encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output > raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors='replace'))) >RuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading. > > >b'bbbb ' >Command: ['/usr/bin/aspell', 'list', '--encoding', 'utf-8', '--lang', 'en', '-d', 'en_US', '--mode', 'none'] >Context: @test_66_tmp_dir/test.txt: html>body>p >Traceback (most recent call last): > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline > wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker > return get_process_output(process, encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output > raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors='replace'))) >RuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading. > > >b'iiii ' >Command: ['/usr/bin/aspell', 'list', '--encoding', 'utf-8', '--lang', 'en', '-d', 'en_US', '--mode', 'none'] >Context: @test_66_tmp_dir/test.txt: html>body>p >Traceback (most recent call last): > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline > wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker > return get_process_output(process, encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output > raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors='replace'))) >RuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading. > > >b'kkkk ' >Command: ['/usr/bin/aspell', 'list', '--encoding', 'utf-8', '--lang', 'en', '-d', 'en_US', '--mode', 'none'] >Context: @test_66_tmp_dir/test.txt: html>body>p >Traceback (most recent call last): > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline > wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker > return get_process_output(process, encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output > raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors='replace'))) >RuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading. > > >______________ TestHtml5AdvancedSelectors.test_css_nested_pseudo _______________ > >self = <tests.filters.test_html.TestHtml5AdvancedSelectors testMethod=test_css_nested_pseudo> > > def test_css_nested_pseudo(self): > """Test HTML.""" > > config = self.dedent( > """ > matrix: > - name: html_css > sources: > - '{}/**/*.txt' > aspell: > lang: en > d: en_US > hunspell: > d: en_US > pipeline: > - pyspelling.filters.html: > mode: html5 > ignores: > - 'p:is(:not(.zzzz), .iiii)' > """ > ).format(self.tempdir) > self.mktemp('.html5.yml', config, 'utf-8') >> self.assert_spellcheck( > '.html5.yml', [ > 'aaaa', 'eeee', 'ffff', 'gggg', 'kkkk', 'llll' > ] > ) > >config = ('matrix:\n' > '- name: html_css\n' > ' sources:\n' > " - '@test_66_tmp_dir/**/*.txt'\n" > ' aspell:\n' > ' lang: en\n' > ' d: en_US\n' > ' hunspell:\n' > ' d: en_US\n' > ' pipeline:\n' > ' - pyspelling.filters.html:\n' > ' mode: html5\n' > ' ignores:\n' > " - 'p:is(:not(.zzzz), .iiii)'\n") >self = <tests.filters.test_html.TestHtml5AdvancedSelectors testMethod=test_css_nested_pseudo> > >tests/filters/test_html.py:1086: >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ >tests/util.py:232: in assert_spellcheck > self.assertEqual(sorted(expected), sorted(list(words))) >E AssertionError: Lists differ: ['aaaa', 'eeee', 'ffff', 'gggg', 'kkkk', 'llll'] != [] >E >E First list contains 6 additional elements. >E First extra element 0: >E 'aaaa' >E >E - ['aaaa', 'eeee', 'ffff', 'gggg', 'kkkk', 'llll'] >E + [] > aspell_location = '/usr/bin/aspell' > config_file = '.html5.yml' > expected = ['aaaa', 'eeee', 'ffff', 'gggg', 'kkkk', 'llll'] > groups = None > hunspell_location = None > names = None > results = Results(words=[], context='@test_66_tmp_dir/test.txt: html>body>div>div>div>div>div>p.llll.zzzz', category='html5content', error='Traceback (most recent call last):\n File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline\n wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding)\n File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker\n return get_process_output(process, encoding)\n File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output\n raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors=\'replace\')))\nRuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading.\n') > running = 'aspell' > self = <tests.filters.test_html.TestHtml5AdvancedSelectors testMethod=test_css_nested_pseudo> > sources = None > verbose = 4 > words = set() >----------------------------- Captured stdout call ----------------------------- >Using aspell to spellcheck html_css >Running Task: html_css... > >> Processing: @test_66_tmp_dir/test.txt > >b'aaaa ' >Command: ['/usr/bin/aspell', 'list', '--encoding', 'utf-8', '--lang', 'en', '-d', 'en_US', '--mode', 'none'] >Context: @test_66_tmp_dir/test.txt: html>body>div.aaaa >Traceback (most recent call last): > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline > wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker > return get_process_output(process, encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output > raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors='replace'))) >RuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading. > > >b'eeee ' >Command: ['/usr/bin/aspell', 'list', '--encoding', 'utf-8', '--lang', 'en', '-d', 'en_US', '--mode', 'none'] >Context: @test_66_tmp_dir/test.txt: html>body>div>div.eeee >Traceback (most recent call last): > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline > wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker > return get_process_output(process, encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output > raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors='replace'))) >RuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading. > > >b'ffff ' >Command: ['/usr/bin/aspell', 'list', '--encoding', 'utf-8', '--lang', 'en', '-d', 'en_US', '--mode', 'none'] >Context: @test_66_tmp_dir/test.txt: html>body>div>div>div.ffff >Traceback (most recent call last): > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline > wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker > return get_process_output(process, encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output > raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors='replace'))) >RuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading. > > >b'gggg ' >Command: ['/usr/bin/aspell', 'list', '--encoding', 'utf-8', '--lang', 'en', '-d', 'en_US', '--mode', 'none'] >Context: @test_66_tmp_dir/test.txt: html>body>div>div>div>div.gggg >Traceback (most recent call last): > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline > wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker > return get_process_output(process, encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output > raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors='replace'))) >RuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading. > > >b'kkkk ' >Command: ['/usr/bin/aspell', 'list', '--encoding', 'utf-8', '--lang', 'en', '-d', 'en_US', '--mode', 'none'] >Context: @test_66_tmp_dir/test.txt: html>body>div>div>div>div>div.kkkk >Traceback (most recent call last): > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline > wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker > return get_process_output(process, encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output > raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors='replace'))) >RuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading. > > >b'llll ' >Command: ['/usr/bin/aspell', 'list', '--encoding', 'utf-8', '--lang', 'en', '-d', 'en_US', '--mode', 'none'] >Context: @test_66_tmp_dir/test.txt: html>body>div>div>div>div>div>p.llll.zzzz >Traceback (most recent call last): > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline > wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker > return get_process_output(process, encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output > raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors='replace'))) >RuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading. > > >_________________ TestHtml5AdvancedSelectors.test_css_parents __________________ > >self = <tests.filters.test_html.TestHtml5AdvancedSelectors testMethod=test_css_parents> > > def test_css_parents(self): > """Test HTML.""" > > config = self.dedent( > """ > matrix: > - name: html_css > sources: > - '{}/**/*.txt' > aspell: > lang: en > d: en_US > hunspell: > d: en_US > pipeline: > - pyspelling.filters.html: > mode: html5 > ignores: > - 'body div.gggg > p.zzzz' > """ > ).format(self.tempdir) > self.mktemp('.html5.yml', config, 'utf-8') >> self.assert_spellcheck( > '.html5.yml', [ > 'aaaa', 'bbbb', 'cccc', 'dddd', 'eeee', 'ffff', 'gggg', 'hhhh', 'jjjj', 'kkkk', 'llll' > ] > ) > >config = ('matrix:\n' > '- name: html_css\n' > ' sources:\n' > " - '@test_66_tmp_dir/**/*.txt'\n" > ' aspell:\n' > ' lang: en\n' > ' d: en_US\n' > ' hunspell:\n' > ' d: en_US\n' > ' pipeline:\n' > ' - pyspelling.filters.html:\n' > ' mode: html5\n' > ' ignores:\n' > " - 'body div.gggg > p.zzzz'\n") >self = <tests.filters.test_html.TestHtml5AdvancedSelectors testMethod=test_css_parents> > >tests/filters/test_html.py:1001: >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ >tests/util.py:232: in assert_spellcheck > self.assertEqual(sorted(expected), sorted(list(words))) >E AssertionError: Lists differ: ['aaaa', 'bbbb', 'cccc', 'dddd', 'eeee', '[41 chars]lll'] != [] >E >E First list contains 11 additional elements. >E First extra element 0: >E 'aaaa' >E >E + [] >E - ['aaaa', >E - 'bbbb', >E - 'cccc', >E - 'dddd', >E - 'eeee', >E - 'ffff', >E - 'gggg', >E - 'hhhh', >E - 'jjjj', >E - 'kkkk', >E - 'llll'] > aspell_location = '/usr/bin/aspell' > config_file = '.html5.yml' > expected = ['aaaa', > 'bbbb', > 'cccc', > 'dddd', > 'eeee', > 'ffff', > 'gggg', > 'hhhh', > 'jjjj', > 'kkkk', > 'llll'] > groups = None > hunspell_location = None > names = None > results = Results(words=[], context='@test_66_tmp_dir/test.txt: html>body>div>div>div>div>div>p.llll.zzzz', category='html5content', error='Traceback (most recent call last):\n File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline\n wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding)\n File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker\n return get_process_output(process, encoding)\n File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output\n raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors=\'replace\')))\nRuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading.\n') > running = 'aspell' > self = <tests.filters.test_html.TestHtml5AdvancedSelectors testMethod=test_css_parents> > sources = None > verbose = 4 > words = set() >----------------------------- Captured stdout call ----------------------------- >Using aspell to spellcheck html_css >Running Task: html_css... > >> Processing: @test_66_tmp_dir/test.txt > >b'aaaa ' >Command: ['/usr/bin/aspell', 'list', '--encoding', 'utf-8', '--lang', 'en', '-d', 'en_US', '--mode', 'none'] >Context: @test_66_tmp_dir/test.txt: html>body>div.aaaa >Traceback (most recent call last): > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline > wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker > return get_process_output(process, encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output > raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors='replace'))) >RuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading. > > >b'bbbb ' >Command: ['/usr/bin/aspell', 'list', '--encoding', 'utf-8', '--lang', 'en', '-d', 'en_US', '--mode', 'none'] >Context: @test_66_tmp_dir/test.txt: html>body>div>p.bbbb >Traceback (most recent call last): > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline > wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker > return get_process_output(process, encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output > raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors='replace'))) >RuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading. > > >b'cccc ' >Command: ['/usr/bin/aspell', 'list', '--encoding', 'utf-8', '--lang', 'en', '-d', 'en_US', '--mode', 'none'] >Context: @test_66_tmp_dir/test.txt: html>body>div>p.cccc >Traceback (most recent call last): > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline > wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker > return get_process_output(process, encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output > raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors='replace'))) >RuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading. > > >b'dddd ' >Command: ['/usr/bin/aspell', 'list', '--encoding', 'utf-8', '--lang', 'en', '-d', 'en_US', '--mode', 'none'] >Context: @test_66_tmp_dir/test.txt: html>body>div>p.dddd >Traceback (most recent call last): > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline > wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker > return get_process_output(process, encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output > raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors='replace'))) >RuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading. > > >b'eeee ' >Command: ['/usr/bin/aspell', 'list', '--encoding', 'utf-8', '--lang', 'en', '-d', 'en_US', '--mode', 'none'] >Context: @test_66_tmp_dir/test.txt: html>body>div>div.eeee >Traceback (most recent call last): > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline > wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker > return get_process_output(process, encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output > raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors='replace'))) >RuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading. > > >b'ffff ' >Command: ['/usr/bin/aspell', 'list', '--encoding', 'utf-8', '--lang', 'en', '-d', 'en_US', '--mode', 'none'] >Context: @test_66_tmp_dir/test.txt: html>body>div>div>div.ffff >Traceback (most recent call last): > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline > wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker > return get_process_output(process, encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output > raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors='replace'))) >RuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading. > > >b'gggg ' >Command: ['/usr/bin/aspell', 'list', '--encoding', 'utf-8', '--lang', 'en', '-d', 'en_US', '--mode', 'none'] >Context: @test_66_tmp_dir/test.txt: html>body>div>div>div>div.gggg >Traceback (most recent call last): > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline > wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker > return get_process_output(process, encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output > raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors='replace'))) >RuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading. > > >b'hhhh ' >Command: ['/usr/bin/aspell', 'list', '--encoding', 'utf-8', '--lang', 'en', '-d', 'en_US', '--mode', 'none'] >Context: @test_66_tmp_dir/test.txt: html>body>div>div>div>div>p.hhhh >Traceback (most recent call last): > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline > wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker > return get_process_output(process, encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output > raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors='replace'))) >RuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading. > > >b'jjjj ' >Command: ['/usr/bin/aspell', 'list', '--encoding', 'utf-8', '--lang', 'en', '-d', 'en_US', '--mode', 'none'] >Context: @test_66_tmp_dir/test.txt: html>body>div>div>div>div>p.jjjj >Traceback (most recent call last): > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline > wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker > return get_process_output(process, encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output > raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors='replace'))) >RuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading. > > >b'kkkk ' >Command: ['/usr/bin/aspell', 'list', '--encoding', 'utf-8', '--lang', 'en', '-d', 'en_US', '--mode', 'none'] >Context: @test_66_tmp_dir/test.txt: html>body>div>div>div>div>div.kkkk >Traceback (most recent call last): > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline > wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker > return get_process_output(process, encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output > raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors='replace'))) >RuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading. > > >b'llll ' >Command: ['/usr/bin/aspell', 'list', '--encoding', 'utf-8', '--lang', 'en', '-d', 'en_US', '--mode', 'none'] >Context: @test_66_tmp_dir/test.txt: html>body>div>div>div>div>div>p.llll.zzzz >Traceback (most recent call last): > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline > wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker > return get_process_output(process, encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output > raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors='replace'))) >RuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading. > > >__________________ TestHtml5AdvancedSelectors.test_css_pseudo __________________ > >self = <tests.filters.test_html.TestHtml5AdvancedSelectors testMethod=test_css_pseudo> > > def test_css_pseudo(self): > """Test HTML.""" > > config = self.dedent( > """ > matrix: > - name: html_css > sources: > - '{}/**/*.txt' > aspell: > lang: en > d: en_US > hunspell: > d: en_US > pipeline: > - pyspelling.filters.html: > mode: html5 > ignores: > - 'p.bbbb ~ div > div > div :not(p.hhhh + .zzzz)' > - 'p:is(.bbbb + .cccc)' > """ > ).format(self.tempdir) > self.mktemp('.html5.yml', config, 'utf-8') >> self.assert_spellcheck( > '.html5.yml', [ > 'aaaa', 'bbbb', 'dddd', 'eeee', 'ffff', 'gggg', 'iiii' > ] > ) > >config = ('matrix:\n' > '- name: html_css\n' > ' sources:\n' > " - '@test_66_tmp_dir/**/*.txt'\n" > ' aspell:\n' > ' lang: en\n' > ' d: en_US\n' > ' hunspell:\n' > ' d: en_US\n' > ' pipeline:\n' > ' - pyspelling.filters.html:\n' > ' mode: html5\n' > ' ignores:\n' > " - 'p.bbbb ~ div > div > div :not(p.hhhh + .zzzz)'\n" > " - 'p:is(.bbbb + .cccc)'\n") >self = <tests.filters.test_html.TestHtml5AdvancedSelectors testMethod=test_css_pseudo> > >tests/filters/test_html.py:1058: >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ >tests/util.py:232: in assert_spellcheck > self.assertEqual(sorted(expected), sorted(list(words))) >E AssertionError: Lists differ: ['aaaa', 'bbbb', 'dddd', 'eeee', 'ffff', 'gggg', 'iiii'] != [] >E >E First list contains 7 additional elements. >E First extra element 0: >E 'aaaa' >E >E - ['aaaa', 'bbbb', 'dddd', 'eeee', 'ffff', 'gggg', 'iiii'] >E + [] > aspell_location = '/usr/bin/aspell' > config_file = '.html5.yml' > expected = ['aaaa', 'bbbb', 'dddd', 'eeee', 'ffff', 'gggg', 'iiii'] > groups = None > hunspell_location = None > names = None > results = Results(words=[], context='@test_66_tmp_dir/test.txt: html>body>div>div>div>div>p.iiii.zzzz', category='html5content', error='Traceback (most recent call last):\n File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline\n wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding)\n File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker\n return get_process_output(process, encoding)\n File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output\n raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors=\'replace\')))\nRuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading.\n') > running = 'aspell' > self = <tests.filters.test_html.TestHtml5AdvancedSelectors testMethod=test_css_pseudo> > sources = None > verbose = 4 > words = set() >----------------------------- Captured stdout call ----------------------------- >Using aspell to spellcheck html_css >Running Task: html_css... > >> Processing: @test_66_tmp_dir/test.txt > >b'aaaa ' >Command: ['/usr/bin/aspell', 'list', '--encoding', 'utf-8', '--lang', 'en', '-d', 'en_US', '--mode', 'none'] >Context: @test_66_tmp_dir/test.txt: html>body>div.aaaa >Traceback (most recent call last): > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline > wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker > return get_process_output(process, encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output > raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors='replace'))) >RuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading. > > >b'bbbb ' >Command: ['/usr/bin/aspell', 'list', '--encoding', 'utf-8', '--lang', 'en', '-d', 'en_US', '--mode', 'none'] >Context: @test_66_tmp_dir/test.txt: html>body>div>p.bbbb >Traceback (most recent call last): > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline > wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker > return get_process_output(process, encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output > raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors='replace'))) >RuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading. > > >b'dddd ' >Command: ['/usr/bin/aspell', 'list', '--encoding', 'utf-8', '--lang', 'en', '-d', 'en_US', '--mode', 'none'] >Context: @test_66_tmp_dir/test.txt: html>body>div>p.dddd >Traceback (most recent call last): > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline > wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker > return get_process_output(process, encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output > raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors='replace'))) >RuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading. > > >b'eeee ' >Command: ['/usr/bin/aspell', 'list', '--encoding', 'utf-8', '--lang', 'en', '-d', 'en_US', '--mode', 'none'] >Context: @test_66_tmp_dir/test.txt: html>body>div>div.eeee >Traceback (most recent call last): > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline > wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker > return get_process_output(process, encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output > raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors='replace'))) >RuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading. > > >b'ffff ' >Command: ['/usr/bin/aspell', 'list', '--encoding', 'utf-8', '--lang', 'en', '-d', 'en_US', '--mode', 'none'] >Context: @test_66_tmp_dir/test.txt: html>body>div>div>div.ffff >Traceback (most recent call last): > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline > wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker > return get_process_output(process, encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output > raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors='replace'))) >RuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading. > > >b'gggg ' >Command: ['/usr/bin/aspell', 'list', '--encoding', 'utf-8', '--lang', 'en', '-d', 'en_US', '--mode', 'none'] >Context: @test_66_tmp_dir/test.txt: html>body>div>div>div>div.gggg >Traceback (most recent call last): > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline > wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker > return get_process_output(process, encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output > raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors='replace'))) >RuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading. > > >b'iiii ' >Command: ['/usr/bin/aspell', 'list', '--encoding', 'utf-8', '--lang', 'en', '-d', 'en_US', '--mode', 'none'] >Context: @test_66_tmp_dir/test.txt: html>body>div>div>div>div>p.iiii.zzzz >Traceback (most recent call last): > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline > wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker > return get_process_output(process, encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output > raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors='replace'))) >RuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading. > > >_________________ TestHtml5AdvancedSelectors.test_css_siblings _________________ > >self = <tests.filters.test_html.TestHtml5AdvancedSelectors testMethod=test_css_siblings> > > def test_css_siblings(self): > """Test HTML.""" > > config = self.dedent( > """ > matrix: > - name: html_css > sources: > - '{}/**/*.txt' > aspell: > lang: en > d: en_US > hunspell: > d: en_US > pipeline: > - pyspelling.filters.html: > mode: html5 > ignores: > - 'p.bbbb ~ div div.gggg > p.hhhh + p' > """ > ).format(self.tempdir) > self.mktemp('.html5.yml', config, 'utf-8') >> self.assert_spellcheck( > '.html5.yml', [ > 'aaaa', 'bbbb', 'cccc', 'dddd', 'eeee', 'ffff', 'gggg', 'hhhh', 'jjjj', 'kkkk', 'llll' > ] > ) > >config = ('matrix:\n' > '- name: html_css\n' > ' sources:\n' > " - '@test_66_tmp_dir/**/*.txt'\n" > ' aspell:\n' > ' lang: en\n' > ' d: en_US\n' > ' hunspell:\n' > ' d: en_US\n' > ' pipeline:\n' > ' - pyspelling.filters.html:\n' > ' mode: html5\n' > ' ignores:\n' > " - 'p.bbbb ~ div div.gggg > p.hhhh + p'\n") >self = <tests.filters.test_html.TestHtml5AdvancedSelectors testMethod=test_css_siblings> > >tests/filters/test_html.py:1029: >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ >tests/util.py:232: in assert_spellcheck > self.assertEqual(sorted(expected), sorted(list(words))) >E AssertionError: Lists differ: ['aaaa', 'bbbb', 'cccc', 'dddd', 'eeee', '[41 chars]lll'] != [] >E >E First list contains 11 additional elements. >E First extra element 0: >E 'aaaa' >E >E + [] >E - ['aaaa', >E - 'bbbb', >E - 'cccc', >E - 'dddd', >E - 'eeee', >E - 'ffff', >E - 'gggg', >E - 'hhhh', >E - 'jjjj', >E - 'kkkk', >E - 'llll'] > aspell_location = '/usr/bin/aspell' > config_file = '.html5.yml' > expected = ['aaaa', > 'bbbb', > 'cccc', > 'dddd', > 'eeee', > 'ffff', > 'gggg', > 'hhhh', > 'jjjj', > 'kkkk', > 'llll'] > groups = None > hunspell_location = None > names = None > results = Results(words=[], context='@test_66_tmp_dir/test.txt: html>body>div>div>div>div>div>p.llll.zzzz', category='html5content', error='Traceback (most recent call last):\n File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline\n wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding)\n File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker\n return get_process_output(process, encoding)\n File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output\n raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors=\'replace\')))\nRuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading.\n') > running = 'aspell' > self = <tests.filters.test_html.TestHtml5AdvancedSelectors testMethod=test_css_siblings> > sources = None > verbose = 4 > words = set() >----------------------------- Captured stdout call ----------------------------- >Using aspell to spellcheck html_css >Running Task: html_css... > >> Processing: @test_66_tmp_dir/test.txt > >b'aaaa ' >Command: ['/usr/bin/aspell', 'list', '--encoding', 'utf-8', '--lang', 'en', '-d', 'en_US', '--mode', 'none'] >Context: @test_66_tmp_dir/test.txt: html>body>div.aaaa >Traceback (most recent call last): > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline > wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker > return get_process_output(process, encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output > raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors='replace'))) >RuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading. > > >b'bbbb ' >Command: ['/usr/bin/aspell', 'list', '--encoding', 'utf-8', '--lang', 'en', '-d', 'en_US', '--mode', 'none'] >Context: @test_66_tmp_dir/test.txt: html>body>div>p.bbbb >Traceback (most recent call last): > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline > wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker > return get_process_output(process, encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output > raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors='replace'))) >RuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading. > > >b'cccc ' >Command: ['/usr/bin/aspell', 'list', '--encoding', 'utf-8', '--lang', 'en', '-d', 'en_US', '--mode', 'none'] >Context: @test_66_tmp_dir/test.txt: html>body>div>p.cccc >Traceback (most recent call last): > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline > wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker > return get_process_output(process, encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output > raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors='replace'))) >RuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading. > > >b'dddd ' >Command: ['/usr/bin/aspell', 'list', '--encoding', 'utf-8', '--lang', 'en', '-d', 'en_US', '--mode', 'none'] >Context: @test_66_tmp_dir/test.txt: html>body>div>p.dddd >Traceback (most recent call last): > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline > wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker > return get_process_output(process, encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output > raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors='replace'))) >RuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading. > > >b'eeee ' >Command: ['/usr/bin/aspell', 'list', '--encoding', 'utf-8', '--lang', 'en', '-d', 'en_US', '--mode', 'none'] >Context: @test_66_tmp_dir/test.txt: html>body>div>div.eeee >Traceback (most recent call last): > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline > wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker > return get_process_output(process, encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output > raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors='replace'))) >RuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading. > > >b'ffff ' >Command: ['/usr/bin/aspell', 'list', '--encoding', 'utf-8', '--lang', 'en', '-d', 'en_US', '--mode', 'none'] >Context: @test_66_tmp_dir/test.txt: html>body>div>div>div.ffff >Traceback (most recent call last): > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline > wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker > return get_process_output(process, encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output > raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors='replace'))) >RuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading. > > >b'gggg ' >Command: ['/usr/bin/aspell', 'list', '--encoding', 'utf-8', '--lang', 'en', '-d', 'en_US', '--mode', 'none'] >Context: @test_66_tmp_dir/test.txt: html>body>div>div>div>div.gggg >Traceback (most recent call last): > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline > wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker > return get_process_output(process, encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output > raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors='replace'))) >RuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading. > > >b'hhhh ' >Command: ['/usr/bin/aspell', 'list', '--encoding', 'utf-8', '--lang', 'en', '-d', 'en_US', '--mode', 'none'] >Context: @test_66_tmp_dir/test.txt: html>body>div>div>div>div>p.hhhh >Traceback (most recent call last): > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline > wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker > return get_process_output(process, encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output > raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors='replace'))) >RuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading. > > >b'jjjj ' >Command: ['/usr/bin/aspell', 'list', '--encoding', 'utf-8', '--lang', 'en', '-d', 'en_US', '--mode', 'none'] >Context: @test_66_tmp_dir/test.txt: html>body>div>div>div>div>p.jjjj >Traceback (most recent call last): > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline > wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker > return get_process_output(process, encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output > raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors='replace'))) >RuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading. > > >b'kkkk ' >Command: ['/usr/bin/aspell', 'list', '--encoding', 'utf-8', '--lang', 'en', '-d', 'en_US', '--mode', 'none'] >Context: @test_66_tmp_dir/test.txt: html>body>div>div>div>div>div.kkkk >Traceback (most recent call last): > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline > wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker > return get_process_output(process, encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output > raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors='replace'))) >RuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading. > > >b'llll ' >Command: ['/usr/bin/aspell', 'list', '--encoding', 'utf-8', '--lang', 'en', '-d', 'en_US', '--mode', 'none'] >Context: @test_66_tmp_dir/test.txt: html>body>div>div>div>div>div>p.llll.zzzz >Traceback (most recent call last): > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline > wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker > return get_process_output(process, encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output > raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors='replace'))) >RuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading. > > >__________________ TestHtml5AdvancedSelectors.test_has_pseudo __________________ > >self = <tests.filters.test_html.TestHtml5AdvancedSelectors testMethod=test_has_pseudo> > > def test_has_pseudo(self): > """Test HTML.""" > > config = self.dedent( > """ > matrix: > - name: html_css > sources: > - '{}/**/*.txt' > aspell: > lang: en > d: en_US > hunspell: > d: en_US > pipeline: > - pyspelling.filters.html: > mode: html5 > ignores: > - 'div:not(.aaaa):has(.kkkk > p.llll)' > - 'p:has(+ .dddd:has(+ div .jjjj))' > """ > ).format(self.tempdir) > self.mktemp('.html5.yml', config, 'utf-8') >> self.assert_spellcheck( > '.html5.yml', [ > 'aaaa', 'bbbb', 'dddd' > ] > ) > >config = ('matrix:\n' > '- name: html_css\n' > ' sources:\n' > " - '@test_66_tmp_dir/**/*.txt'\n" > ' aspell:\n' > ' lang: en\n' > ' d: en_US\n' > ' hunspell:\n' > ' d: en_US\n' > ' pipeline:\n' > ' - pyspelling.filters.html:\n' > ' mode: html5\n' > ' ignores:\n' > " - 'div:not(.aaaa):has(.kkkk > p.llll)'\n" > " - 'p:has(+ .dddd:has(+ div .jjjj))'\n") >self = <tests.filters.test_html.TestHtml5AdvancedSelectors testMethod=test_has_pseudo> > >tests/filters/test_html.py:1115: >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ >tests/util.py:232: in assert_spellcheck > self.assertEqual(sorted(expected), sorted(list(words))) >E AssertionError: Lists differ: ['aaaa', 'bbbb', 'dddd'] != [] >E >E First list contains 3 additional elements. >E First extra element 0: >E 'aaaa' >E >E - ['aaaa', 'bbbb', 'dddd'] >E + [] > aspell_location = '/usr/bin/aspell' > config_file = '.html5.yml' > expected = ['aaaa', 'bbbb', 'dddd'] > groups = None > hunspell_location = None > names = None > results = Results(words=[], context='@test_66_tmp_dir/test.txt: html>body>div>p.dddd', category='html5content', error='Traceback (most recent call last):\n File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline\n wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding)\n File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker\n return get_process_output(process, encoding)\n File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output\n raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors=\'replace\')))\nRuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading.\n') > running = 'aspell' > self = <tests.filters.test_html.TestHtml5AdvancedSelectors testMethod=test_has_pseudo> > sources = None > verbose = 4 > words = set() >----------------------------- Captured stdout call ----------------------------- >Using aspell to spellcheck html_css >Running Task: html_css... > >> Processing: @test_66_tmp_dir/test.txt > >b'aaaa ' >Command: ['/usr/bin/aspell', 'list', '--encoding', 'utf-8', '--lang', 'en', '-d', 'en_US', '--mode', 'none'] >Context: @test_66_tmp_dir/test.txt: html>body>div.aaaa >Traceback (most recent call last): > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline > wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker > return get_process_output(process, encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output > raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors='replace'))) >RuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading. > > >b'bbbb ' >Command: ['/usr/bin/aspell', 'list', '--encoding', 'utf-8', '--lang', 'en', '-d', 'en_US', '--mode', 'none'] >Context: @test_66_tmp_dir/test.txt: html>body>div>p.bbbb >Traceback (most recent call last): > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline > wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker > return get_process_output(process, encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output > raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors='replace'))) >RuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading. > > >b'dddd ' >Command: ['/usr/bin/aspell', 'list', '--encoding', 'utf-8', '--lang', 'en', '-d', 'en_US', '--mode', 'none'] >Context: @test_66_tmp_dir/test.txt: html>body>div>p.dddd >Traceback (most recent call last): > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline > wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker > return get_process_output(process, encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output > raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors='replace'))) >RuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading. > > >_________________ TestHtml5AdvancedSelectors.test_has_pseudo2 __________________ > >self = <tests.filters.test_html.TestHtml5AdvancedSelectors testMethod=test_has_pseudo2> > > def test_has_pseudo2(self): > """Test HTML.""" > > config = self.dedent( > """ > matrix: > - name: html_css > sources: > - '{}/**/*.txt' > aspell: > lang: en > d: en_US > hunspell: > d: en_US > pipeline: > - pyspelling.filters.html: > mode: html5 > ignores: > - 'p:has(~ .jjjj)' > """ > ).format(self.tempdir) > self.mktemp('.html5.yml', config, 'utf-8') >> self.assert_spellcheck( > '.html5.yml', [ > 'aaaa', 'bbbb', 'cccc', 'dddd', 'eeee', 'ffff', 'gggg', 'jjjj', 'kkkk', 'llll' > ] > ) > >config = ('matrix:\n' > '- name: html_css\n' > ' sources:\n' > " - '@test_66_tmp_dir/**/*.txt'\n" > ' aspell:\n' > ' lang: en\n' > ' d: en_US\n' > ' hunspell:\n' > ' d: en_US\n' > ' pipeline:\n' > ' - pyspelling.filters.html:\n' > ' mode: html5\n' > ' ignores:\n' > " - 'p:has(~ .jjjj)'\n") >self = <tests.filters.test_html.TestHtml5AdvancedSelectors testMethod=test_has_pseudo2> > >tests/filters/test_html.py:1143: >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ >tests/util.py:232: in assert_spellcheck > self.assertEqual(sorted(expected), sorted(list(words))) >E AssertionError: Lists differ: ['aaaa', 'bbbb', 'cccc', 'dddd', 'eeee', 'ffff', 'gggg', 'jjjj', 'kkkk', 'llll'] != [] >E >E First list contains 10 additional elements. >E First extra element 0: >E 'aaaa' >E >E - ['aaaa', 'bbbb', 'cccc', 'dddd', 'eeee', 'ffff', 'gggg', 'jjjj', 'kkkk', 'llll'] >E + [] > aspell_location = '/usr/bin/aspell' > config_file = '.html5.yml' > expected = ['aaaa', 'bbbb', 'cccc', 'dddd', 'eeee', 'ffff', 'gggg', 'jjjj', 'kkkk', 'llll'] > groups = None > hunspell_location = None > names = None > results = Results(words=[], context='@test_66_tmp_dir/test.txt: html>body>div>div>div>div>div>p.llll.zzzz', category='html5content', error='Traceback (most recent call last):\n File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline\n wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding)\n File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker\n return get_process_output(process, encoding)\n File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output\n raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors=\'replace\')))\nRuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading.\n') > running = 'aspell' > self = <tests.filters.test_html.TestHtml5AdvancedSelectors testMethod=test_has_pseudo2> > sources = None > verbose = 4 > words = set() >----------------------------- Captured stdout call ----------------------------- >Using aspell to spellcheck html_css >Running Task: html_css... > >> Processing: @test_66_tmp_dir/test.txt > >b'aaaa ' >Command: ['/usr/bin/aspell', 'list', '--encoding', 'utf-8', '--lang', 'en', '-d', 'en_US', '--mode', 'none'] >Context: @test_66_tmp_dir/test.txt: html>body>div.aaaa >Traceback (most recent call last): > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline > wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker > return get_process_output(process, encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output > raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors='replace'))) >RuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading. > > >b'bbbb ' >Command: ['/usr/bin/aspell', 'list', '--encoding', 'utf-8', '--lang', 'en', '-d', 'en_US', '--mode', 'none'] >Context: @test_66_tmp_dir/test.txt: html>body>div>p.bbbb >Traceback (most recent call last): > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline > wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker > return get_process_output(process, encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output > raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors='replace'))) >RuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading. > > >b'cccc ' >Command: ['/usr/bin/aspell', 'list', '--encoding', 'utf-8', '--lang', 'en', '-d', 'en_US', '--mode', 'none'] >Context: @test_66_tmp_dir/test.txt: html>body>div>p.cccc >Traceback (most recent call last): > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline > wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker > return get_process_output(process, encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output > raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors='replace'))) >RuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading. > > >b'dddd ' >Command: ['/usr/bin/aspell', 'list', '--encoding', 'utf-8', '--lang', 'en', '-d', 'en_US', '--mode', 'none'] >Context: @test_66_tmp_dir/test.txt: html>body>div>p.dddd >Traceback (most recent call last): > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline > wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker > return get_process_output(process, encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output > raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors='replace'))) >RuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading. > > >b'eeee ' >Command: ['/usr/bin/aspell', 'list', '--encoding', 'utf-8', '--lang', 'en', '-d', 'en_US', '--mode', 'none'] >Context: @test_66_tmp_dir/test.txt: html>body>div>div.eeee >Traceback (most recent call last): > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline > wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker > return get_process_output(process, encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output > raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors='replace'))) >RuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading. > > >b'ffff ' >Command: ['/usr/bin/aspell', 'list', '--encoding', 'utf-8', '--lang', 'en', '-d', 'en_US', '--mode', 'none'] >Context: @test_66_tmp_dir/test.txt: html>body>div>div>div.ffff >Traceback (most recent call last): > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline > wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker > return get_process_output(process, encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output > raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors='replace'))) >RuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading. > > >b'gggg ' >Command: ['/usr/bin/aspell', 'list', '--encoding', 'utf-8', '--lang', 'en', '-d', 'en_US', '--mode', 'none'] >Context: @test_66_tmp_dir/test.txt: html>body>div>div>div>div.gggg >Traceback (most recent call last): > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline > wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker > return get_process_output(process, encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output > raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors='replace'))) >RuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading. > > >b'jjjj ' >Command: ['/usr/bin/aspell', 'list', '--encoding', 'utf-8', '--lang', 'en', '-d', 'en_US', '--mode', 'none'] >Context: @test_66_tmp_dir/test.txt: html>body>div>div>div>div>p.jjjj >Traceback (most recent call last): > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline > wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker > return get_process_output(process, encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output > raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors='replace'))) >RuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading. > > >b'kkkk ' >Command: ['/usr/bin/aspell', 'list', '--encoding', 'utf-8', '--lang', 'en', '-d', 'en_US', '--mode', 'none'] >Context: @test_66_tmp_dir/test.txt: html>body>div>div>div>div>div.kkkk >Traceback (most recent call last): > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline > wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker > return get_process_output(process, encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output > raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors='replace'))) >RuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading. > > >b'llll ' >Command: ['/usr/bin/aspell', 'list', '--encoding', 'utf-8', '--lang', 'en', '-d', 'en_US', '--mode', 'none'] >Context: @test_66_tmp_dir/test.txt: html>body>div>div>div>div>div>p.llll.zzzz >Traceback (most recent call last): > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline > wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker > return get_process_output(process, encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output > raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors='replace'))) >RuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading. > > >__________________ TestHtml5AdvancedSelectors2.test_has_list ___________________ > >self = <tests.filters.test_html.TestHtml5AdvancedSelectors2 testMethod=test_has_list> > > def test_has_list(self): > """Test HTML.""" > > config = self.dedent( > """ > matrix: > - name: html_css > sources: > - '{}/**/*.txt' > aspell: > lang: en > d: en_US > hunspell: > d: en_US > pipeline: > - pyspelling.filters.html: > mode: html5 > ignores: > - 'div:has(> .bbbb, .ffff, .jjjj)' > """ > ).format(self.tempdir) > self.mktemp('.html5.yml', config, 'utf-8') >> self.assert_spellcheck( > '.html5.yml', [ > 'cccc', 'dddd', 'gggg', 'hhhh' > ] > ) > >config = ('matrix:\n' > '- name: html_css\n' > ' sources:\n' > " - '@test_66_tmp_dir/**/*.txt'\n" > ' aspell:\n' > ' lang: en\n' > ' d: en_US\n' > ' hunspell:\n' > ' d: en_US\n' > ' pipeline:\n' > ' - pyspelling.filters.html:\n' > ' mode: html5\n' > ' ignores:\n' > " - 'div:has(> .bbbb, .ffff, .jjjj)'\n") >self = <tests.filters.test_html.TestHtml5AdvancedSelectors2 testMethod=test_has_list> > >tests/filters/test_html.py:1210: >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ >tests/util.py:232: in assert_spellcheck > self.assertEqual(sorted(expected), sorted(list(words))) >E AssertionError: Lists differ: ['cccc', 'dddd', 'gggg', 'hhhh'] != [] >E >E First list contains 4 additional elements. >E First extra element 0: >E 'cccc' >E >E - ['cccc', 'dddd', 'gggg', 'hhhh'] >E + [] > aspell_location = '/usr/bin/aspell' > config_file = '.html5.yml' > expected = ['cccc', 'dddd', 'gggg', 'hhhh'] > groups = None > hunspell_location = None > names = None > results = Results(words=[], context='@test_66_tmp_dir/test.txt: html>body>div>p.hhhh', category='html5content', error='Traceback (most recent call last):\n File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline\n wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding)\n File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker\n return get_process_output(process, encoding)\n File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output\n raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors=\'replace\')))\nRuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading.\n') > running = 'aspell' > self = <tests.filters.test_html.TestHtml5AdvancedSelectors2 testMethod=test_has_list> > sources = None > verbose = 4 > words = set() >----------------------------- Captured stdout call ----------------------------- >Using aspell to spellcheck html_css >Running Task: html_css... > >> Processing: @test_66_tmp_dir/test.txt > >b'cccc ' >Command: ['/usr/bin/aspell', 'list', '--encoding', 'utf-8', '--lang', 'en', '-d', 'en_US', '--mode', 'none'] >Context: @test_66_tmp_dir/test.txt: html>body>div.cccc >Traceback (most recent call last): > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline > wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker > return get_process_output(process, encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output > raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors='replace'))) >RuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading. > > >b'dddd ' >Command: ['/usr/bin/aspell', 'list', '--encoding', 'utf-8', '--lang', 'en', '-d', 'en_US', '--mode', 'none'] >Context: @test_66_tmp_dir/test.txt: html>body>div>p.dddd >Traceback (most recent call last): > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline > wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker > return get_process_output(process, encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output > raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors='replace'))) >RuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading. > > >b'gggg ' >Command: ['/usr/bin/aspell', 'list', '--encoding', 'utf-8', '--lang', 'en', '-d', 'en_US', '--mode', 'none'] >Context: @test_66_tmp_dir/test.txt: html>body>div.gggg >Traceback (most recent call last): > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline > wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker > return get_process_output(process, encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output > raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors='replace'))) >RuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading. > > >b'hhhh ' >Command: ['/usr/bin/aspell', 'list', '--encoding', 'utf-8', '--lang', 'en', '-d', 'en_US', '--mode', 'none'] >Context: @test_66_tmp_dir/test.txt: html>body>div>p.hhhh >Traceback (most recent call last): > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline > wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker > return get_process_output(process, encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output > raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors='replace'))) >RuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading. > > >________________ TestHtml5AdvancedSelectors2.test_not_has_list _________________ > >self = <tests.filters.test_html.TestHtml5AdvancedSelectors2 testMethod=test_not_has_list> > > def test_not_has_list(self): > """Test HTML.""" > > config = self.dedent( > """ > matrix: > - name: html_css > sources: > - '{}/**/*.txt' > aspell: > lang: en > d: en_US > hunspell: > d: en_US > pipeline: > - pyspelling.filters.html: > mode: html5 > ignores: > - 'div:has(> :not(.bbbb, .ffff, .jjjj))' > """ > ).format(self.tempdir) > self.mktemp('.html5.yml', config, 'utf-8') >> self.assert_spellcheck( > '.html5.yml', [ > 'aaaa', 'bbbb', 'eeee', 'ffff' > ] > ) > >config = ('matrix:\n' > '- name: html_css\n' > ' sources:\n' > " - '@test_66_tmp_dir/**/*.txt'\n" > ' aspell:\n' > ' lang: en\n' > ' d: en_US\n' > ' hunspell:\n' > ' d: en_US\n' > ' pipeline:\n' > ' - pyspelling.filters.html:\n' > ' mode: html5\n' > ' ignores:\n' > " - 'div:has(> :not(.bbbb, .ffff, .jjjj))'\n") >self = <tests.filters.test_html.TestHtml5AdvancedSelectors2 testMethod=test_not_has_list> > >tests/filters/test_html.py:1238: >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ >tests/util.py:232: in assert_spellcheck > self.assertEqual(sorted(expected), sorted(list(words))) >E AssertionError: Lists differ: ['aaaa', 'bbbb', 'eeee', 'ffff'] != [] >E >E First list contains 4 additional elements. >E First extra element 0: >E 'aaaa' >E >E - ['aaaa', 'bbbb', 'eeee', 'ffff'] >E + [] > aspell_location = '/usr/bin/aspell' > config_file = '.html5.yml' > expected = ['aaaa', 'bbbb', 'eeee', 'ffff'] > groups = None > hunspell_location = None > names = None > results = Results(words=[], context='@test_66_tmp_dir/test.txt: html>body>div>p.ffff', category='html5content', error='Traceback (most recent call last):\n File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline\n wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding)\n File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker\n return get_process_output(process, encoding)\n File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output\n raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors=\'replace\')))\nRuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading.\n') > running = 'aspell' > self = <tests.filters.test_html.TestHtml5AdvancedSelectors2 testMethod=test_not_has_list> > sources = None > verbose = 4 > words = set() >----------------------------- Captured stdout call ----------------------------- >Using aspell to spellcheck html_css >Running Task: html_css... > >> Processing: @test_66_tmp_dir/test.txt > >b'aaaa ' >Command: ['/usr/bin/aspell', 'list', '--encoding', 'utf-8', '--lang', 'en', '-d', 'en_US', '--mode', 'none'] >Context: @test_66_tmp_dir/test.txt: html>body>div.aaaa >Traceback (most recent call last): > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline > wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker > return get_process_output(process, encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output > raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors='replace'))) >RuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading. > > >b'bbbb ' >Command: ['/usr/bin/aspell', 'list', '--encoding', 'utf-8', '--lang', 'en', '-d', 'en_US', '--mode', 'none'] >Context: @test_66_tmp_dir/test.txt: html>body>div>p.bbbb >Traceback (most recent call last): > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline > wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker > return get_process_output(process, encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output > raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors='replace'))) >RuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading. > > >b'eeee ' >Command: ['/usr/bin/aspell', 'list', '--encoding', 'utf-8', '--lang', 'en', '-d', 'en_US', '--mode', 'none'] >Context: @test_66_tmp_dir/test.txt: html>body>div.eeee >Traceback (most recent call last): > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline > wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker > return get_process_output(process, encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output > raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors='replace'))) >RuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading. > > >b'ffff ' >Command: ['/usr/bin/aspell', 'list', '--encoding', 'utf-8', '--lang', 'en', '-d', 'en_US', '--mode', 'none'] >Context: @test_66_tmp_dir/test.txt: html>body>div>p.ffff >Traceback (most recent call last): > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline > wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker > return get_process_output(process, encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output > raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors='replace'))) >RuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading. > > >________________ TestHtml5AdvancedSelectors2.test_not_has_list2 ________________ > >self = <tests.filters.test_html.TestHtml5AdvancedSelectors2 testMethod=test_not_has_list2> > > def test_not_has_list2(self): > """Test HTML.""" > > config = self.dedent( > """ > matrix: > - name: html_css > sources: > - '{}/**/*.txt' > aspell: > lang: en > d: en_US > hunspell: > d: en_US > pipeline: > - pyspelling.filters.html: > mode: html5 > ignores: > - 'div:not(:has(> .bbbb, .ffff, .jjjj))' > """ > ).format(self.tempdir) > self.mktemp('.html5.yml', config, 'utf-8') >> self.assert_spellcheck( > '.html5.yml', [ > 'aaaa', 'bbbb', 'eeee', 'ffff', 'iiii', 'jjjj' > ] > ) > >config = ('matrix:\n' > '- name: html_css\n' > ' sources:\n' > " - '@test_66_tmp_dir/**/*.txt'\n" > ' aspell:\n' > ' lang: en\n' > ' d: en_US\n' > ' hunspell:\n' > ' d: en_US\n' > ' pipeline:\n' > ' - pyspelling.filters.html:\n' > ' mode: html5\n' > ' ignores:\n' > " - 'div:not(:has(> .bbbb, .ffff, .jjjj))'\n") >self = <tests.filters.test_html.TestHtml5AdvancedSelectors2 testMethod=test_not_has_list2> > >tests/filters/test_html.py:1266: >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ >tests/util.py:232: in assert_spellcheck > self.assertEqual(sorted(expected), sorted(list(words))) >E AssertionError: Lists differ: ['aaaa', 'bbbb', 'eeee', 'ffff', 'iiii', 'jjjj'] != [] >E >E First list contains 6 additional elements. >E First extra element 0: >E 'aaaa' >E >E - ['aaaa', 'bbbb', 'eeee', 'ffff', 'iiii', 'jjjj'] >E + [] > aspell_location = '/usr/bin/aspell' > config_file = '.html5.yml' > expected = ['aaaa', 'bbbb', 'eeee', 'ffff', 'iiii', 'jjjj'] > groups = None > hunspell_location = None > names = None > results = Results(words=[], context='@test_66_tmp_dir/test.txt: html>body>div>p.jjjj', category='html5content', error='Traceback (most recent call last):\n File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline\n wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding)\n File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker\n return get_process_output(process, encoding)\n File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output\n raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors=\'replace\')))\nRuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading.\n') > running = 'aspell' > self = <tests.filters.test_html.TestHtml5AdvancedSelectors2 testMethod=test_not_has_list2> > sources = None > verbose = 4 > words = set() >----------------------------- Captured stdout call ----------------------------- >Using aspell to spellcheck html_css >Running Task: html_css... > >> Processing: @test_66_tmp_dir/test.txt > >b'aaaa ' >Command: ['/usr/bin/aspell', 'list', '--encoding', 'utf-8', '--lang', 'en', '-d', 'en_US', '--mode', 'none'] >Context: @test_66_tmp_dir/test.txt: html>body>div.aaaa >Traceback (most recent call last): > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline > wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker > return get_process_output(process, encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output > raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors='replace'))) >RuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading. > > >b'bbbb ' >Command: ['/usr/bin/aspell', 'list', '--encoding', 'utf-8', '--lang', 'en', '-d', 'en_US', '--mode', 'none'] >Context: @test_66_tmp_dir/test.txt: html>body>div>p.bbbb >Traceback (most recent call last): > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline > wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker > return get_process_output(process, encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output > raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors='replace'))) >RuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading. > > >b'eeee ' >Command: ['/usr/bin/aspell', 'list', '--encoding', 'utf-8', '--lang', 'en', '-d', 'en_US', '--mode', 'none'] >Context: @test_66_tmp_dir/test.txt: html>body>div.eeee >Traceback (most recent call last): > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline > wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker > return get_process_output(process, encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output > raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors='replace'))) >RuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading. > > >b'ffff ' >Command: ['/usr/bin/aspell', 'list', '--encoding', 'utf-8', '--lang', 'en', '-d', 'en_US', '--mode', 'none'] >Context: @test_66_tmp_dir/test.txt: html>body>div>p.ffff >Traceback (most recent call last): > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline > wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker > return get_process_output(process, encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output > raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors='replace'))) >RuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading. > > >b'iiii ' >Command: ['/usr/bin/aspell', 'list', '--encoding', 'utf-8', '--lang', 'en', '-d', 'en_US', '--mode', 'none'] >Context: @test_66_tmp_dir/test.txt: html>body>div.iiii >Traceback (most recent call last): > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline > wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker > return get_process_output(process, encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output > raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors='replace'))) >RuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading. > > >b'jjjj ' >Command: ['/usr/bin/aspell', 'list', '--encoding', 'utf-8', '--lang', 'en', '-d', 'en_US', '--mode', 'none'] >Context: @test_66_tmp_dir/test.txt: html>body>div>p.jjjj >Traceback (most recent call last): > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline > wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker > return get_process_output(process, encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output > raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors='replace'))) >RuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading. > > >___________________ TestHtml5AdvancedSelectors2.test_not_not ___________________ > >self = <tests.filters.test_html.TestHtml5AdvancedSelectors2 testMethod=test_not_not> > > def test_not_not(self): > """Test HTML.""" > > config = self.dedent( > """ > matrix: > - name: html_css > sources: > - '{}/**/*.txt' > aspell: > lang: en > d: en_US > hunspell: > d: en_US > pipeline: > - pyspelling.filters.html: > mode: html5 > ignores: > - 'div:not(:not(.aaaa))' > """ > ).format(self.tempdir) > self.mktemp('.html5.yml', config, 'utf-8') >> self.assert_spellcheck( > '.html5.yml', [ > 'cccc', 'dddd', 'eeee', 'ffff', 'gggg', 'hhhh', 'iiii', 'jjjj' > ] > ) > >config = ('matrix:\n' > '- name: html_css\n' > ' sources:\n' > " - '@test_66_tmp_dir/**/*.txt'\n" > ' aspell:\n' > ' lang: en\n' > ' d: en_US\n' > ' hunspell:\n' > ' d: en_US\n' > ' pipeline:\n' > ' - pyspelling.filters.html:\n' > ' mode: html5\n' > ' ignores:\n' > " - 'div:not(:not(.aaaa))'\n") >self = <tests.filters.test_html.TestHtml5AdvancedSelectors2 testMethod=test_not_not> > >tests/filters/test_html.py:1294: >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ >tests/util.py:232: in assert_spellcheck > self.assertEqual(sorted(expected), sorted(list(words))) >E AssertionError: Lists differ: ['cccc', 'dddd', 'eeee', 'ffff', 'gggg', 'hhhh', 'iiii', 'jjjj'] != [] >E >E First list contains 8 additional elements. >E First extra element 0: >E 'cccc' >E >E - ['cccc', 'dddd', 'eeee', 'ffff', 'gggg', 'hhhh', 'iiii', 'jjjj'] >E + [] > aspell_location = '/usr/bin/aspell' > config_file = '.html5.yml' > expected = ['cccc', 'dddd', 'eeee', 'ffff', 'gggg', 'hhhh', 'iiii', 'jjjj'] > groups = None > hunspell_location = None > names = None > results = Results(words=[], context='@test_66_tmp_dir/test.txt: html>body>div>p.jjjj', category='html5content', error='Traceback (most recent call last):\n File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline\n wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding)\n File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker\n return get_process_output(process, encoding)\n File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output\n raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors=\'replace\')))\nRuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading.\n') > running = 'aspell' > self = <tests.filters.test_html.TestHtml5AdvancedSelectors2 testMethod=test_not_not> > sources = None > verbose = 4 > words = set() >----------------------------- Captured stdout call ----------------------------- >Using aspell to spellcheck html_css >Running Task: html_css... > >> Processing: @test_66_tmp_dir/test.txt > >b'cccc ' >Command: ['/usr/bin/aspell', 'list', '--encoding', 'utf-8', '--lang', 'en', '-d', 'en_US', '--mode', 'none'] >Context: @test_66_tmp_dir/test.txt: html>body>div.cccc >Traceback (most recent call last): > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline > wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker > return get_process_output(process, encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output > raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors='replace'))) >RuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading. > > >b'dddd ' >Command: ['/usr/bin/aspell', 'list', '--encoding', 'utf-8', '--lang', 'en', '-d', 'en_US', '--mode', 'none'] >Context: @test_66_tmp_dir/test.txt: html>body>div>p.dddd >Traceback (most recent call last): > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline > wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker > return get_process_output(process, encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output > raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors='replace'))) >RuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading. > > >b'eeee ' >Command: ['/usr/bin/aspell', 'list', '--encoding', 'utf-8', '--lang', 'en', '-d', 'en_US', '--mode', 'none'] >Context: @test_66_tmp_dir/test.txt: html>body>div.eeee >Traceback (most recent call last): > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline > wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker > return get_process_output(process, encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output > raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors='replace'))) >RuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading. > > >b'ffff ' >Command: ['/usr/bin/aspell', 'list', '--encoding', 'utf-8', '--lang', 'en', '-d', 'en_US', '--mode', 'none'] >Context: @test_66_tmp_dir/test.txt: html>body>div>p.ffff >Traceback (most recent call last): > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline > wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker > return get_process_output(process, encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output > raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors='replace'))) >RuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading. > > >b'gggg ' >Command: ['/usr/bin/aspell', 'list', '--encoding', 'utf-8', '--lang', 'en', '-d', 'en_US', '--mode', 'none'] >Context: @test_66_tmp_dir/test.txt: html>body>div.gggg >Traceback (most recent call last): > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline > wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker > return get_process_output(process, encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output > raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors='replace'))) >RuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading. > > >b'hhhh ' >Command: ['/usr/bin/aspell', 'list', '--encoding', 'utf-8', '--lang', 'en', '-d', 'en_US', '--mode', 'none'] >Context: @test_66_tmp_dir/test.txt: html>body>div>p.hhhh >Traceback (most recent call last): > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline > wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker > return get_process_output(process, encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output > raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors='replace'))) >RuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading. > > >b'iiii ' >Command: ['/usr/bin/aspell', 'list', '--encoding', 'utf-8', '--lang', 'en', '-d', 'en_US', '--mode', 'none'] >Context: @test_66_tmp_dir/test.txt: html>body>div.iiii >Traceback (most recent call last): > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline > wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker > return get_process_output(process, encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output > raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors='replace'))) >RuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading. > > >b'jjjj ' >Command: ['/usr/bin/aspell', 'list', '--encoding', 'utf-8', '--lang', 'en', '-d', 'en_US', '--mode', 'none'] >Context: @test_66_tmp_dir/test.txt: html>body>div>p.jjjj >Traceback (most recent call last): > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline > wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker > return get_process_output(process, encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output > raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors='replace'))) >RuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading. > > >__________________________ TestHTML5LIB.test_html5lib __________________________ > >self = <tests.filters.test_html.TestHTML5LIB testMethod=test_html5lib> > > def test_html5lib(self): > """Test `html5lib`.""" > > bad_comment_words = ['helo', 'begn'] > bad_content_words = ['flga', 'graet'] > bad_attr_words = ['recieve', 'teh'] > bad_words = bad_comment_words + bad_content_words + bad_attr_words > good_words = ['yes', 'word'] > > template = self.dedent( > """ > <html> > <head> > <script> > ffffff > </script> > </head> > <body> > <!-- {} --> > <p>{}<code>kjaljw aljwk</code><img src="./image.png" alt="{}"/></p> > <pre>uouqei euowuw > </pre> > <p><span class="some-class">dksj dkjsk</span><span id="some-id">ksjk akjsks</span> > </body> > </html> > """ > ).format( > '\n'.join(bad_comment_words + good_words), > ' '.join(bad_content_words + good_words), > ' '.join(bad_attr_words + good_words) > ) > > self.mktemp('test.txt', template, 'utf-8') >> self.assert_spellcheck('.html5lib.yml', bad_words) > >bad_attr_words = ['recieve', 'teh'] >bad_comment_words = ['helo', 'begn'] >bad_content_words = ['flga', 'graet'] >bad_words = ['helo', 'begn', 'flga', 'graet', 'recieve', 'teh'] >good_words = ['yes', 'word'] >self = <tests.filters.test_html.TestHTML5LIB testMethod=test_html5lib> >template = ('<html>\n' > '<head>\n' > '<script>\n' > 'ffffff\n' > '</script>\n' > '</head>\n' > '<body>\n' > '<!-- helo\n' > 'begn\n' > 'yes\n' > 'word -->\n' > '<p>flga graet yes word<code>kjaljw aljwk</code><img src="./image.png" ' > 'alt="recieve teh yes word"/></p>\n' > '<pre>uouqei euowuw\n' > '</pre>\n' > '<p><span class="some-class">dksj dkjsk</span><span id="some-id">ksjk ' > 'akjsks</span>\n' > '</body>\n' > '</html>\n') > >tests/filters/test_html.py:1365: >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ >tests/util.py:232: in assert_spellcheck > self.assertEqual(sorted(expected), sorted(list(words))) >E AssertionError: Lists differ: ['begn', 'flga', 'graet', 'helo', 'recieve', 'teh'] != [] >E >E First list contains 6 additional elements. >E First extra element 0: >E 'begn' >E >E - ['begn', 'flga', 'graet', 'helo', 'recieve', 'teh'] >E + [] > aspell_location = '/usr/bin/aspell' > config_file = '.html5lib.yml' > expected = ['helo', 'begn', 'flga', 'graet', 'recieve', 'teh'] > groups = None > hunspell_location = None > names = None > results = Results(words=[], context='@test_66_tmp_dir/test.txt: html>body>p', category='html5content', error='Traceback (most recent call last):\n File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline\n wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding)\n File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker\n return get_process_output(process, encoding)\n File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output\n raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors=\'replace\')))\nRuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading.\n') > running = 'aspell' > self = <tests.filters.test_html.TestHTML5LIB testMethod=test_html5lib> > sources = None > verbose = 4 > words = set() >----------------------------- Captured stdout call ----------------------------- >Using aspell to spellcheck html >Running Task: html... > >> Processing: @test_66_tmp_dir/test.txt > >b'helo\nbegn\nyes\nword' >Command: ['/usr/bin/aspell', 'list', '--encoding', 'utf-8', '--lang', 'en', '-d', 'en_US', '--mode', 'none'] >Context: @test_66_tmp_dir/test.txt: html>body<!--comment--> >Traceback (most recent call last): > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline > wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker > return get_process_output(process, encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output > raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors='replace'))) >RuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading. > > >b'recieve teh yes word' >Command: ['/usr/bin/aspell', 'list', '--encoding', 'utf-8', '--lang', 'en', '-d', 'en_US', '--mode', 'none'] >Context: @test_66_tmp_dir/test.txt: html>body>p>img[alt] >Traceback (most recent call last): > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline > wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker > return get_process_output(process, encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output > raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors='replace'))) >RuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading. > > >b'flga graet yes word ' >Command: ['/usr/bin/aspell', 'list', '--encoding', 'utf-8', '--lang', 'en', '-d', 'en_US', '--mode', 'none'] >Context: @test_66_tmp_dir/test.txt: html>body>p >Traceback (most recent call last): > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline > wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker > return get_process_output(process, encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output > raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors='replace'))) >RuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading. > > >_____________________________ TestXHTML.test_xhtml _____________________________ > >self = <tests.filters.test_html.TestXHTML testMethod=test_xhtml> > > def test_xhtml(self): > """Test XHTML.""" > > bad_comment_words = ['helo', 'begn'] > bad_content_words = ['flga', 'graet'] > bad_attr_words = ['recieve', 'teh'] > bad_words = bad_comment_words + bad_content_words + bad_attr_words > good_words = ['yes', 'word'] > > template = self.dedent( > """ > <?xml version="1.0" encoding="UTF-8"?> > <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"> > <head> > </head> > <body> > <!-- {} --> > <p>{}<code>kjaljw aljwk</code><img src="./image.png" alt="{}"/></p> > <pre>uouqei euowuw > </pre> > <p><span class="some-class">dksj dkjsk</span><span id="some-id">ksjk akjsks</span></p> > <pre> > <div> > <p><span><!-- xxxx --></span></p> > </div> > </pre> > </body> > </html> > """ > ).format( > '\n'.join(bad_comment_words + good_words), > ' '.join(bad_content_words + good_words), > ' '.join(bad_attr_words + good_words) > ) > bad_words.append('xxxx') > > self.mktemp('test.txt', template, 'utf-8') >> self.assert_spellcheck('.xhtml.yml', bad_words) > >bad_attr_words = ['recieve', 'teh'] >bad_comment_words = ['helo', 'begn'] >bad_content_words = ['flga', 'graet'] >bad_words = ['helo', 'begn', 'flga', 'graet', 'recieve', 'teh', 'xxxx'] >good_words = ['yes', 'word'] >self = <tests.filters.test_html.TestXHTML testMethod=test_xhtml> >template = ('<?xml version="1.0" encoding="UTF-8"?>\n' > '<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">\n' > '<head>\n' > '</head>\n' > '<body>\n' > '<!-- helo\n' > 'begn\n' > 'yes\n' > 'word -->\n' > '<p>flga graet yes word<code>kjaljw aljwk</code><img src="./image.png" ' > 'alt="recieve teh yes word"/></p>\n' > '<pre>uouqei euowuw\n' > '</pre>\n' > '<p><span class="some-class">dksj dkjsk</span><span id="some-id">ksjk ' > 'akjsks</span></p>\n' > '<pre>\n' > ' <div>\n' > ' <p><span><!-- xxxx --></span></p>\n' > ' </div>\n' > '</pre>\n' > '</body>\n' > '</html>\n') > >tests/filters/test_html.py:1436: >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ >tests/util.py:232: in assert_spellcheck > self.assertEqual(sorted(expected), sorted(list(words))) >E AssertionError: Lists differ: ['begn', 'flga', 'graet', 'helo', 'recieve', 'teh', 'xxxx'] != [] >E >E First list contains 7 additional elements. >E First extra element 0: >E 'begn' >E >E - ['begn', 'flga', 'graet', 'helo', 'recieve', 'teh', 'xxxx'] >E + [] > aspell_location = '/usr/bin/aspell' > config_file = '.xhtml.yml' > expected = ['helo', 'begn', 'flga', 'graet', 'recieve', 'teh', 'xxxx'] > groups = None > hunspell_location = None > names = None > results = Results(words=[], context='@test_66_tmp_dir/test.txt: html>body>p', category='xhtmlcontent', error='Traceback (most recent call last):\n File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline\n wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding)\n File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker\n return get_process_output(process, encoding)\n File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output\n raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors=\'replace\')))\nRuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading.\n') > running = 'aspell' > self = <tests.filters.test_html.TestXHTML testMethod=test_xhtml> > sources = None > verbose = 4 > words = set() >----------------------------- Captured stdout call ----------------------------- >Using aspell to spellcheck html >Running Task: html... > >> Processing: @test_66_tmp_dir/test.txt > >b'helo\nbegn\nyes\nword' >Command: ['/usr/bin/aspell', 'list', '--encoding', 'utf-8', '--lang', 'en', '-d', 'en_US', '--mode', 'none'] >Context: @test_66_tmp_dir/test.txt: html>body<!--comment--> >Traceback (most recent call last): > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline > wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker > return get_process_output(process, encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output > raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors='replace'))) >RuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading. > > >b'xxxx' >Command: ['/usr/bin/aspell', 'list', '--encoding', 'utf-8', '--lang', 'en', '-d', 'en_US', '--mode', 'none'] >Context: @test_66_tmp_dir/test.txt: html>body>pre>div>p>span<!--comment--> >Traceback (most recent call last): > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline > wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker > return get_process_output(process, encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output > raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors='replace'))) >RuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading. > > >b'recieve teh yes word' >Command: ['/usr/bin/aspell', 'list', '--encoding', 'utf-8', '--lang', 'en', '-d', 'en_US', '--mode', 'none'] >Context: @test_66_tmp_dir/test.txt: html>body>p>img[alt] >Traceback (most recent call last): > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline > wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker > return get_process_output(process, encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output > raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors='replace'))) >RuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading. > > >b'flga graet yes word ' >Command: ['/usr/bin/aspell', 'list', '--encoding', 'utf-8', '--lang', 'en', '-d', 'en_US', '--mode', 'none'] >Context: @test_66_tmp_dir/test.txt: html>body>p >Traceback (most recent call last): > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline > wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker > return get_process_output(process, encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output > raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors='replace'))) >RuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading. > > >_____________________ TestHTMLChained.test_html_after_text _____________________ > >self = <tests.filters.test_html.TestHTMLChained testMethod=test_html_after_text> > > def test_html_after_text(self): > """Test HTML.""" > > bad_comment_words = ['helo', 'begn'] > bad_content_words = ['flga', 'graet'] > bad_attr_words = ['recieve', 'teh'] > bad_words = bad_comment_words + bad_content_words + bad_attr_words > good_words = ['yes', 'word'] > > template = self.dedent( > """ > <html> > <head> > </head> > <body> > <!-- {} --> > <p>{}<code>kjaljw aljwk</code><img src="./image.png" alt="{}"/></p> > <pre>uouqei euowuw > </pre> > <p><span class="some-class">dksj dkjsk</span><span id="some-id">ksjk akjsks</span> > </body> > </html> > """ > ).format( > '\n'.join(bad_comment_words + good_words), > ' '.join(bad_content_words + good_words), > ' '.join(bad_attr_words + good_words) > ) > > self.mktemp('test.txt', template, 'utf-8') >> self.assert_spellcheck('.html.yml', bad_words) > >bad_attr_words = ['recieve', 'teh'] >bad_comment_words = ['helo', 'begn'] >bad_content_words = ['flga', 'graet'] >bad_words = ['helo', 'begn', 'flga', 'graet', 'recieve', 'teh'] >good_words = ['yes', 'word'] >self = <tests.filters.test_html.TestHTMLChained testMethod=test_html_after_text> >template = ('<html>\n' > '<head>\n' > '</head>\n' > '<body>\n' > '<!-- helo\n' > 'begn\n' > 'yes\n' > 'word -->\n' > '<p>flga graet yes word<code>kjaljw aljwk</code><img src="./image.png" ' > 'alt="recieve teh yes word"/></p>\n' > '<pre>uouqei euowuw\n' > '</pre>\n' > '<p><span class="some-class">dksj dkjsk</span><span id="some-id">ksjk ' > 'akjsks</span>\n' > '</body>\n' > '</html>\n') > >tests/filters/test_html.py:1500: >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ >tests/util.py:232: in assert_spellcheck > self.assertEqual(sorted(expected), sorted(list(words))) >E AssertionError: Lists differ: ['begn', 'flga', 'graet', 'helo', 'recieve', 'teh'] != [] >E >E First list contains 6 additional elements. >E First extra element 0: >E 'begn' >E >E - ['begn', 'flga', 'graet', 'helo', 'recieve', 'teh'] >E + [] > aspell_location = '/usr/bin/aspell' > config_file = '.html.yml' > expected = ['helo', 'begn', 'flga', 'graet', 'recieve', 'teh'] > groups = None > hunspell_location = None > names = None > results = Results(words=[], context='@test_66_tmp_dir/test.txt: html>body>p', category='htmlcontent', error='Traceback (most recent call last):\n File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline\n wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding)\n File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker\n return get_process_output(process, encoding)\n File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output\n raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors=\'replace\')))\nRuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading.\n') > running = 'aspell' > self = <tests.filters.test_html.TestHTMLChained testMethod=test_html_after_text> > sources = None > verbose = 4 > words = set() >----------------------------- Captured stdout call ----------------------------- >Using aspell to spellcheck html >Running Task: html... > >> Processing: @test_66_tmp_dir/test.txt > >b'helo\nbegn\nyes\nword' >Command: ['/usr/bin/aspell', 'list', '--encoding', 'utf-8', '--lang', 'en', '-d', 'en_US', '--mode', 'none'] >Context: @test_66_tmp_dir/test.txt: html>body<!--comment--> >Traceback (most recent call last): > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline > wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker > return get_process_output(process, encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output > raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors='replace'))) >RuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading. > > >b'recieve teh yes word' >Command: ['/usr/bin/aspell', 'list', '--encoding', 'utf-8', '--lang', 'en', '-d', 'en_US', '--mode', 'none'] >Context: @test_66_tmp_dir/test.txt: html>body>p>img[alt] >Traceback (most recent call last): > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline > wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker > return get_process_output(process, encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output > raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors='replace'))) >RuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading. > > >b'flga graet yes word ' >Command: ['/usr/bin/aspell', 'list', '--encoding', 'utf-8', '--lang', 'en', '-d', 'en_US', '--mode', 'none'] >Context: @test_66_tmp_dir/test.txt: html>body>p >Traceback (most recent call last): > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline > wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker > return get_process_output(process, encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output > raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors='replace'))) >RuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading. > > >________________________ TestJavaScript.test_javascript ________________________ > >self = <tests.filters.test_javascript.TestJavaScript testMethod=test_javascript> > > def test_javascript(self): > """Test CPP.""" > > bad_docstring = ['helo', 'begn'] > bad_block = ['adn', 'highight'] > bad_comments = ['flga', 'graet'] > bad_comments2 = ['recieve', 'teh'] > bad_words = bad_docstring + bad_block + bad_comments + bad_comments2 > good_words = ['yes', 'word'] > template = self.dedent( > """ > /** > * {} > */ > function Func(arg, arg2) {{ > /* {} */ > > var x = 3; > // {} > // {} > }} > """ > ).format( > ' '.join(bad_docstring + good_words), > ' '.join(bad_block + good_words), > ' '.join(bad_comments + good_words), > ' '.join(bad_comments2 + good_words) > ) > self.mktemp('test.txt', template, 'utf-8') >> self.assert_spellcheck('.javascript.yml', bad_words) > >bad_block = ['adn', 'highight'] >bad_comments = ['flga', 'graet'] >bad_comments2 = ['recieve', 'teh'] >bad_docstring = ['helo', 'begn'] >bad_words = ['helo', 'begn', 'adn', 'highight', 'flga', 'graet', 'recieve', 'teh'] >good_words = ['yes', 'word'] >self = <tests.filters.test_javascript.TestJavaScript testMethod=test_javascript> >template = ('/**\n' > ' * helo begn yes word\n' > ' */\n' > 'function Func(arg, arg2) {\n' > ' /* adn highight yes word */\n' > '\n' > ' var x = 3;\n' > ' // flga graet yes word\n' > ' // recieve teh yes word\n' > '}\n') > >tests/filters/test_javascript.py:59: >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ >tests/util.py:232: in assert_spellcheck > self.assertEqual(sorted(expected), sorted(list(words))) >E AssertionError: Lists differ: ['adn', 'begn', 'flga', 'graet', 'helo', 'highight', 'recieve', 'teh'] != [] >E >E First list contains 8 additional elements. >E First extra element 0: >E 'adn' >E >E - ['adn', 'begn', 'flga', 'graet', 'helo', 'highight', 'recieve', 'teh'] >E + [] > aspell_location = '/usr/bin/aspell' > config_file = '.javascript.yml' > expected = ['helo', 'begn', 'adn', 'highight', 'flga', 'graet', 'recieve', 'teh'] > groups = None > hunspell_location = None > names = None > results = Results(words=[], context='@test_66_tmp_dir/test.txt (1)', category='js-docs', error='Traceback (most recent call last):\n File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline\n wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding)\n File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker\n return get_process_output(process, encoding)\n File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output\n raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors=\'replace\')))\nRuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading.\n') > running = 'aspell' > self = <tests.filters.test_javascript.TestJavaScript testMethod=test_javascript> > sources = None > verbose = 4 > words = set() >----------------------------- Captured stdout call ----------------------------- >Using aspell to spellcheck javascript >Running Task: javascript... > >> Processing: @test_66_tmp_dir/test.txt > >b'adn highight yes word ' >Command: ['/usr/bin/aspell', 'list', '--encoding', 'utf-8', '--lang', 'en', '-d', 'en_US', '--mode', 'none'] >Context: @test_66_tmp_dir/test.txt (5) >Traceback (most recent call last): > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline > wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker > return get_process_output(process, encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output > raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors='replace'))) >RuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading. > > >b'flga graet yes word\nrecieve teh yes word' >Command: ['/usr/bin/aspell', 'list', '--encoding', 'utf-8', '--lang', 'en', '-d', 'en_US', '--mode', 'none'] >Context: @test_66_tmp_dir/test.txt (8) >Traceback (most recent call last): > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline > wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker > return get_process_output(process, encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output > raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors='replace'))) >RuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading. > > >b'helo begn yes word\n' >Command: ['/usr/bin/aspell', 'list', '--encoding', 'utf-8', '--lang', 'en', '-d', 'en_US', '--mode', 'none'] >Context: @test_66_tmp_dir/test.txt (1) >Traceback (most recent call last): > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline > wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker > return get_process_output(process, encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output > raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors='replace'))) >RuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading. > > >________________ TestJavaScriptStrings.test_javascript_strings _________________ > >self = <tests.filters.test_javascript.TestJavaScriptStrings testMethod=test_javascript_strings> > > def test_javascript_strings(self): > """Test JavaScript strings.""" > > bad_string1 = ['helo', 'begn'] > bad_string2 = ['adn', 'highight'] > bad_words = bad_string1 + bad_string2 > good_words = ['yes', 'word'] > template = self.dedent( > r""" > function Func(arg, arg2) {{ > > test = "{} \ > {}"; > > test2 = "\141\x61\u0061\u{{00000061}}\a"; > }} > """ > ).format( > ' '.join(bad_string1 + good_words), > ' '.join(bad_string2 + good_words) > ) > bad_words.append('aaaaa') > self.mktemp('test.txt', template, 'utf-8') >> self.assert_spellcheck('.javascript.yml', bad_words) > >bad_string1 = ['helo', 'begn'] >bad_string2 = ['adn', 'highight'] >bad_words = ['helo', 'begn', 'adn', 'highight', 'aaaaa'] >good_words = ['yes', 'word'] >self = <tests.filters.test_javascript.TestJavaScriptStrings testMethod=test_javascript_strings> >template = ('function Func(arg, arg2) {\n' > '\n' > ' test = "helo begn yes word \\\n' > ' adn highight yes word";\n' > '\n' > ' test2 = "\\141\\x61\\u0061\\u{00000061}\\a";\n' > '}\n') > >tests/filters/test_javascript.py:111: >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ >tests/util.py:232: in assert_spellcheck > self.assertEqual(sorted(expected), sorted(list(words))) >E AssertionError: Lists differ: ['aaaaa', 'adn', 'begn', 'helo', 'highight'] != [] >E >E First list contains 5 additional elements. >E First extra element 0: >E 'aaaaa' >E >E - ['aaaaa', 'adn', 'begn', 'helo', 'highight'] >E + [] > aspell_location = '/usr/bin/aspell' > config_file = '.javascript.yml' > expected = ['helo', 'begn', 'adn', 'highight', 'aaaaa'] > groups = None > hunspell_location = None > names = None > results = Results(words=[], context='@test_66_tmp_dir/test.txt (6)', category='js-strings', error='Traceback (most recent call last):\n File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline\n wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding)\n File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker\n return get_process_output(process, encoding)\n File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output\n raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors=\'replace\')))\nRuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading.\n') > running = 'aspell' > self = <tests.filters.test_javascript.TestJavaScriptStrings testMethod=test_javascript_strings> > sources = None > verbose = 4 > words = set() >----------------------------- Captured stdout call ----------------------------- >Using aspell to spellcheck javascript >Running Task: javascript... > >> Processing: @test_66_tmp_dir/test.txt > >b'helo begn yes word adn highight yes word' >Command: ['/usr/bin/aspell', 'list', '--encoding', 'utf-8', '--lang', 'en', '-d', 'en_US', '--mode', 'none'] >Context: @test_66_tmp_dir/test.txt (3) >Traceback (most recent call last): > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline > wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker > return get_process_output(process, encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output > raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors='replace'))) >RuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading. > > >b'aaaaa' >Command: ['/usr/bin/aspell', 'list', '--encoding', 'utf-8', '--lang', 'en', '-d', 'en_US', '--mode', 'none'] >Context: @test_66_tmp_dir/test.txt (6) >Traceback (most recent call last): > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline > wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker > return get_process_output(process, encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output > raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors='replace'))) >RuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading. > > >______________ TestJavaScriptStrings.test_javascript_temp_strings ______________ > >self = <tests.filters.test_javascript.TestJavaScriptStrings testMethod=test_javascript_temp_strings> > > def test_javascript_temp_strings(self): > """Test JavaScript.""" > > bad_string1 = ['helo', 'begn'] > bad_string2 = ['adn', 'highight'] > bad_words = bad_string1 + bad_string2 > good_words = ['yes', 'word'] > template = self.dedent( > r""" > function Func(arg, arg2) {{ > > test = `{} \ > {}`; > > xxxx = 3; > > test2 = `\x61\u0061\u{{00000061}}\a ${{ {{"test": `value ${{xxxx}} yyyy`}}["test"] }} no`; > }} > """ > ).format( > ' '.join(bad_string1 + good_words), > ' '.join(bad_string2 + good_words) > ) > bad_words.extend(['aaaa', 'yyyy']) > self.mktemp('test.txt', template, 'utf-8') >> self.assert_spellcheck('.javascript.yml', bad_words) > >bad_string1 = ['helo', 'begn'] >bad_string2 = ['adn', 'highight'] >bad_words = ['helo', 'begn', 'adn', 'highight', 'aaaa', 'yyyy'] >good_words = ['yes', 'word'] >self = <tests.filters.test_javascript.TestJavaScriptStrings testMethod=test_javascript_temp_strings> >template = ('function Func(arg, arg2) {\n' > '\n' > ' test = `helo begn yes word \\\n' > ' adn highight yes word`;\n' > '\n' > ' xxxx = 3;\n' > '\n' > ' test2 = `\\x61\\u0061\\u{00000061}\\a ${ {"test": `value ${xxxx} ' > 'yyyy`}["test"] } no`;\n' > '}\n') > >tests/filters/test_javascript.py:138: >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ >tests/util.py:232: in assert_spellcheck > self.assertEqual(sorted(expected), sorted(list(words))) >E AssertionError: Lists differ: ['aaaa', 'adn', 'begn', 'helo', 'highight', 'yyyy'] != [] >E >E First list contains 6 additional elements. >E First extra element 0: >E 'aaaa' >E >E - ['aaaa', 'adn', 'begn', 'helo', 'highight', 'yyyy'] >E + [] > aspell_location = '/usr/bin/aspell' > config_file = '.javascript.yml' > expected = ['helo', 'begn', 'adn', 'highight', 'aaaa', 'yyyy'] > groups = None > hunspell_location = None > names = None > results = Results(words=[], context='@test_66_tmp_dir/test.txt (8)', category='js-strings', error='Traceback (most recent call last):\n File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline\n wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding)\n File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker\n return get_process_output(process, encoding)\n File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output\n raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors=\'replace\')))\nRuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading.\n') > running = 'aspell' > self = <tests.filters.test_javascript.TestJavaScriptStrings testMethod=test_javascript_temp_strings> > sources = None > verbose = 4 > words = set() >----------------------------- Captured stdout call ----------------------------- >Using aspell to spellcheck javascript >Running Task: javascript... > >> Processing: @test_66_tmp_dir/test.txt > >b'helo begn yes word adn highight yes word' >Command: ['/usr/bin/aspell', 'list', '--encoding', 'utf-8', '--lang', 'en', '-d', 'en_US', '--mode', 'none'] >Context: @test_66_tmp_dir/test.txt (4) >Traceback (most recent call last): > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline > wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker > return get_process_output(process, encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output > raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors='replace'))) >RuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading. > > >b'test' >Command: ['/usr/bin/aspell', 'list', '--encoding', 'utf-8', '--lang', 'en', '-d', 'en_US', '--mode', 'none'] >Context: @test_66_tmp_dir/test.txt (8) >Traceback (most recent call last): > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline > wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker > return get_process_output(process, encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output > raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors='replace'))) >RuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading. > > >b'value yyyy' >Command: ['/usr/bin/aspell', 'list', '--encoding', 'utf-8', '--lang', 'en', '-d', 'en_US', '--mode', 'none'] >Context: @test_66_tmp_dir/test.txt (8) >Traceback (most recent call last): > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline > wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker > return get_process_output(process, encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output > raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors='replace'))) >RuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading. > > >b'test' >Command: ['/usr/bin/aspell', 'list', '--encoding', 'utf-8', '--lang', 'en', '-d', 'en_US', '--mode', 'none'] >Context: @test_66_tmp_dir/test.txt (8) >Traceback (most recent call last): > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline > wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker > return get_process_output(process, encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output > raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors='replace'))) >RuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading. > > >b'aaaa no' >Command: ['/usr/bin/aspell', 'list', '--encoding', 'utf-8', '--lang', 'en', '-d', 'en_US', '--mode', 'none'] >Context: @test_66_tmp_dir/test.txt (8) >Traceback (most recent call last): > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline > wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker > return get_process_output(process, encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output > raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors='replace'))) >RuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading. > > >________ TestJavaScriptGroupedComments.test_javascript_grouped_comments ________ > >self = <tests.filters.test_javascript.TestJavaScriptGroupedComments testMethod=test_javascript_grouped_comments> > > def test_javascript_grouped_comments(self): > """Test JavaScript grouped comments.""" > > template = self.dedent( > r""" > function Func(arg, arg2) {{ > > var test = 3; // what > // bbbb > > // ``` > // akdjal dlkajdlf dkkjkj > // skjdl djkjf lslsl > // ``` > > // aaaa > }} > """ > ) > bad_words = ['aaaa', 'bbbb'] > self.mktemp('test.txt', template, 'utf-8') >> self.assert_spellcheck('.javascript.yml', bad_words) > >bad_words = ['aaaa', 'bbbb'] >self = <tests.filters.test_javascript.TestJavaScriptGroupedComments testMethod=test_javascript_grouped_comments> >template = ('function Func(arg, arg2) {{\n' > '\n' > ' var test = 3; // what\n' > ' // bbbb\n' > '\n' > ' // ```\n' > ' // akdjal dlkajdlf dkkjkj\n' > ' // skjdl djkjf lslsl\n' > ' // ```\n' > '\n' > ' // aaaa\n' > '}}\n') > >tests/filters/test_javascript.py:201: >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ >tests/util.py:232: in assert_spellcheck > self.assertEqual(sorted(expected), sorted(list(words))) >E AssertionError: Lists differ: ['aaaa', 'bbbb'] != [] >E >E First list contains 2 additional elements. >E First extra element 0: >E 'aaaa' >E >E - ['aaaa', 'bbbb'] >E + [] > aspell_location = '/usr/bin/aspell' > config_file = '.javascript.yml' > expected = ['aaaa', 'bbbb'] > groups = None > hunspell_location = None > names = None > results = Results(words=[], context='@test_66_tmp_dir/test.txt (11)', category='context', error='Traceback (most recent call last):\n File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline\n wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding)\n File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker\n return get_process_output(process, encoding)\n File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output\n raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors=\'replace\')))\nRuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading.\n') > running = 'aspell' > self = <tests.filters.test_javascript.TestJavaScriptGroupedComments testMethod=test_javascript_grouped_comments> > sources = None > verbose = 4 > words = set() >----------------------------- Captured stdout call ----------------------------- >Using aspell to spellcheck javascript >Running Task: javascript... > >> Processing: @test_66_tmp_dir/test.txt > >b'what' >Command: ['/usr/bin/aspell', 'list', '--encoding', 'utf-8', '--lang', 'en', '-d', 'en_US', '--mode', 'none'] >Context: @test_66_tmp_dir/test.txt (3) >Traceback (most recent call last): > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline > wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker > return get_process_output(process, encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output > raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors='replace'))) >RuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading. > > >b'bbbb' >Command: ['/usr/bin/aspell', 'list', '--encoding', 'utf-8', '--lang', 'en', '-d', 'en_US', '--mode', 'none'] >Context: @test_66_tmp_dir/test.txt (4) >Traceback (most recent call last): > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline > wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker > return get_process_output(process, encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output > raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors='replace'))) >RuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading. > > >b'aaaa' >Command: ['/usr/bin/aspell', 'list', '--encoding', 'utf-8', '--lang', 'en', '-d', 'en_US', '--mode', 'none'] >Context: @test_66_tmp_dir/test.txt (11) >Traceback (most recent call last): > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline > wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker > return get_process_output(process, encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output > raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors='replace'))) >RuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading. > > >_______________ TestJavaScriptChained.test_javascript_after_text _______________ > >self = <tests.filters.test_javascript.TestJavaScriptChained testMethod=test_javascript_after_text> > > def test_javascript_after_text(self): > """Test JavaScript after text.""" > > bad_docstring = ['helo', 'begn'] > bad_block = ['adn', 'highight'] > bad_comments = ['flga', 'graet'] > bad_comments2 = ['recieve', 'teh'] > bad_words = bad_docstring + bad_block + bad_comments + bad_comments2 > good_words = ['yes', 'word'] > template = self.dedent( > """ > /** > * {} > */ > function Func(arg, arg2) {{ > /* {} */ > > var x = 3; > // {} > // {} > }} > """ > ).format( > ' '.join(bad_docstring + good_words), > ' '.join(bad_block + good_words), > ' '.join(bad_comments + good_words), > ' '.join(bad_comments2 + good_words) > ) > self.mktemp('test.txt', template, 'utf-8') >> self.assert_spellcheck('.javascript.yml', bad_words) > >bad_block = ['adn', 'highight'] >bad_comments = ['flga', 'graet'] >bad_comments2 = ['recieve', 'teh'] >bad_docstring = ['helo', 'begn'] >bad_words = ['helo', 'begn', 'adn', 'highight', 'flga', 'graet', 'recieve', 'teh'] >good_words = ['yes', 'word'] >self = <tests.filters.test_javascript.TestJavaScriptChained testMethod=test_javascript_after_text> >template = ('/**\n' > ' * helo begn yes word\n' > ' */\n' > 'function Func(arg, arg2) {\n' > ' /* adn highight yes word */\n' > '\n' > ' var x = 3;\n' > ' // flga graet yes word\n' > ' // recieve teh yes word\n' > '}\n') > >tests/filters/test_javascript.py:259: >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ >tests/util.py:232: in assert_spellcheck > self.assertEqual(sorted(expected), sorted(list(words))) >E AssertionError: Lists differ: ['adn', 'begn', 'flga', 'graet', 'helo', 'highight', 'recieve', 'teh'] != [] >E >E First list contains 8 additional elements. >E First extra element 0: >E 'adn' >E >E - ['adn', 'begn', 'flga', 'graet', 'helo', 'highight', 'recieve', 'teh'] >E + [] > aspell_location = '/usr/bin/aspell' > config_file = '.javascript.yml' > expected = ['helo', 'begn', 'adn', 'highight', 'flga', 'graet', 'recieve', 'teh'] > groups = None > hunspell_location = None > names = None > results = Results(words=[], context='@test_66_tmp_dir/test.txt (1)', category='js-docs', error='Traceback (most recent call last):\n File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline\n wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding)\n File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker\n return get_process_output(process, encoding)\n File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output\n raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors=\'replace\')))\nRuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading.\n') > running = 'aspell' > self = <tests.filters.test_javascript.TestJavaScriptChained testMethod=test_javascript_after_text> > sources = None > verbose = 4 > words = set() >----------------------------- Captured stdout call ----------------------------- >Using aspell to spellcheck javascript >Running Task: javascript... > >> Processing: @test_66_tmp_dir/test.txt > >b'adn highight yes word ' >Command: ['/usr/bin/aspell', 'list', '--encoding', 'utf-8', '--lang', 'en', '-d', 'en_US', '--mode', 'none'] >Context: @test_66_tmp_dir/test.txt (5) >Traceback (most recent call last): > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline > wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker > return get_process_output(process, encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output > raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors='replace'))) >RuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading. > > >b'flga graet yes word\nrecieve teh yes word' >Command: ['/usr/bin/aspell', 'list', '--encoding', 'utf-8', '--lang', 'en', '-d', 'en_US', '--mode', 'none'] >Context: @test_66_tmp_dir/test.txt (8) >Traceback (most recent call last): > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline > wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker > return get_process_output(process, encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output > raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors='replace'))) >RuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading. > > >b'helo begn yes word\n' >Command: ['/usr/bin/aspell', 'list', '--encoding', 'utf-8', '--lang', 'en', '-d', 'en_US', '--mode', 'none'] >Context: @test_66_tmp_dir/test.txt (1) >Traceback (most recent call last): > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline > wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker > return get_process_output(process, encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output > raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors='replace'))) >RuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading. > > >__________________________ TestMarkdown.test_markdown __________________________ > >self = <tests.filters.test_markdown.TestMarkdown testMethod=test_markdown> > > def test_markdown(self): > """Test Markdown.""" > > bad_words = ['helo', 'begn'] > good_words = ['yes', 'word'] > > template = self.dedent( > """ > ## Title > > {} > > Line `slajdl alsjs` > > ``` > skjadf alsdkjls > ``` > """ > ).format( > '\n'.join(bad_words + good_words), > ) > > print(template) > self.mktemp('test.txt', template, 'utf-8') >> self.assert_spellcheck('.markdown.yml', bad_words) > >bad_words = ['helo', 'begn'] >good_words = ['yes', 'word'] >self = <tests.filters.test_markdown.TestMarkdown testMethod=test_markdown> >template = ('## Title\n' > '\n' > 'helo\n' > 'begn\n' > 'yes\n' > 'word\n' > '\n' > 'Line `slajdl alsjs`\n' > '\n' > '```\n' > 'skjadf alsdkjls\n' > '```\n') > >tests/filters/test_markdown.py:58: >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ >tests/util.py:232: in assert_spellcheck > self.assertEqual(sorted(expected), sorted(list(words))) >E AssertionError: Lists differ: ['begn', 'helo'] != [] >E >E First list contains 2 additional elements. >E First extra element 0: >E 'begn' >E >E - ['begn', 'helo'] >E + [] > aspell_location = '/usr/bin/aspell' > config_file = '.markdown.yml' > expected = ['helo', 'begn'] > groups = None > hunspell_location = None > names = None > results = Results(words=[], context='@test_66_tmp_dir/test.txt: html>body>p', category='htmlcontent', error='Traceback (most recent call last):\n File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline\n wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding)\n File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker\n return get_process_output(process, encoding)\n File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output\n raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors=\'replace\')))\nRuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading.\n') > running = 'aspell' > self = <tests.filters.test_markdown.TestMarkdown testMethod=test_markdown> > sources = None > verbose = 4 > words = set() >----------------------------- Captured stdout call ----------------------------- >## Title > >helo >begn >yes >word > >Line `slajdl alsjs` > >``` >skjadf alsdkjls >``` > >Using aspell to spellcheck markdown >Running Task: markdown... > >> Processing: @test_66_tmp_dir/test.txt > >b'Title ' >Command: ['/usr/bin/aspell', 'list', '--encoding', 'utf-8', '--lang', 'en', '-d', 'en_US', '--mode', 'none'] >Context: @test_66_tmp_dir/test.txt: html>body>h2 >Traceback (most recent call last): > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline > wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker > return get_process_output(process, encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output > raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors='replace'))) >RuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading. > > >b'helo\nbegn\nyes\nword ' >Command: ['/usr/bin/aspell', 'list', '--encoding', 'utf-8', '--lang', 'en', '-d', 'en_US', '--mode', 'none'] >Context: @test_66_tmp_dir/test.txt: html>body>p >Traceback (most recent call last): > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline > wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker > return get_process_output(process, encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output > raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors='replace'))) >RuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading. > > >b'Line ' >Command: ['/usr/bin/aspell', 'list', '--encoding', 'utf-8', '--lang', 'en', '-d', 'en_US', '--mode', 'none'] >Context: @test_66_tmp_dir/test.txt: html>body>p >Traceback (most recent call last): > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline > wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker > return get_process_output(process, encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output > raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors='replace'))) >RuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading. > > >_________________ TestMarkdownChained.test_markdown_after_text _________________ > >self = <tests.filters.test_markdown.TestMarkdownChained testMethod=test_markdown_after_text> > > def test_markdown_after_text(self): > """Test Markdown.""" > > bad_words = ['helo', 'begn'] > good_words = ['yes', 'word'] > > template = self.dedent( > """ > ## Title > > {} > > Line `slajdl alsjs` > > ``` > skjadf alsdkjls > ``` > """ > ).format( > '\n'.join(bad_words + good_words) > ) > > self.mktemp('test.txt', template, 'utf-8') >> self.assert_spellcheck('.markdown.yml', bad_words) > >bad_words = ['helo', 'begn'] >good_words = ['yes', 'word'] >self = <tests.filters.test_markdown.TestMarkdownChained testMethod=test_markdown_after_text> >template = ('## Title\n' > '\n' > 'helo\n' > 'begn\n' > 'yes\n' > 'word\n' > '\n' > 'Line `slajdl alsjs`\n' > '\n' > '```\n' > 'skjadf alsdkjls\n' > '```\n') > >tests/filters/test_markdown.py:114: >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ >tests/util.py:232: in assert_spellcheck > self.assertEqual(sorted(expected), sorted(list(words))) >E AssertionError: Lists differ: ['begn', 'helo'] != [] >E >E First list contains 2 additional elements. >E First extra element 0: >E 'begn' >E >E - ['begn', 'helo'] >E + [] > aspell_location = '/usr/bin/aspell' > config_file = '.markdown.yml' > expected = ['helo', 'begn'] > groups = None > hunspell_location = None > names = None > results = Results(words=[], context='@test_66_tmp_dir/test.txt: html>body>p', category='htmlcontent', error='Traceback (most recent call last):\n File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline\n wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding)\n File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker\n return get_process_output(process, encoding)\n File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output\n raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors=\'replace\')))\nRuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading.\n') > running = 'aspell' > self = <tests.filters.test_markdown.TestMarkdownChained testMethod=test_markdown_after_text> > sources = None > verbose = 4 > words = set() >----------------------------- Captured stdout call ----------------------------- >Using aspell to spellcheck markdown >Running Task: markdown... > >> Processing: @test_66_tmp_dir/test.txt > >b'Title ' >Command: ['/usr/bin/aspell', 'list', '--encoding', 'utf-8', '--lang', 'en', '-d', 'en_US', '--mode', 'none'] >Context: @test_66_tmp_dir/test.txt: html>body>h2 >Traceback (most recent call last): > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline > wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker > return get_process_output(process, encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output > raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors='replace'))) >RuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading. > > >b'helo\nbegn\nyes\nword ' >Command: ['/usr/bin/aspell', 'list', '--encoding', 'utf-8', '--lang', 'en', '-d', 'en_US', '--mode', 'none'] >Context: @test_66_tmp_dir/test.txt: html>body>p >Traceback (most recent call last): > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline > wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker > return get_process_output(process, encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output > raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors='replace'))) >RuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading. > > >b'Line ' >Command: ['/usr/bin/aspell', 'list', '--encoding', 'utf-8', '--lang', 'en', '-d', 'en_US', '--mode', 'none'] >Context: @test_66_tmp_dir/test.txt: html>body>p >Traceback (most recent call last): > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline > wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker > return get_process_output(process, encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output > raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors='replace'))) >RuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading. > > >___________________________ TestODFFilter.test_fodt ____________________________ > >self = <tests.filters.test_odf.TestODFFilter testMethod=test_fodt> > > def test_fodt(self): > """Test `fodt` files.""" > > config = self.dedent( > """ > matrix: > - name: fodt > sources: > - 'tests/**/*.fodt' > aspell: > lang: en > d: en_US > hunspell: > d: en_US > pipeline: > - pyspelling.filters.odf > """ > ).format(self.tempdir) > self.mktemp('.fodt.yml', config, 'utf-8') >> self.assert_spellcheck('.fodt.yml', ['tihs', 'smoe', 'txet']) > >config = ('matrix:\n' > '- name: fodt\n' > ' sources:\n' > " - 'tests/**/*.fodt'\n" > ' aspell:\n' > ' lang: en\n' > ' d: en_US\n' > ' hunspell:\n' > ' d: en_US\n' > ' pipeline:\n' > ' - pyspelling.filters.odf\n') >self = <tests.filters.test_odf.TestODFFilter testMethod=test_fodt> > >tests/filters/test_odf.py:48: >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ >tests/util.py:232: in assert_spellcheck > self.assertEqual(sorted(expected), sorted(list(words))) >E AssertionError: Lists differ: ['smoe', 'tihs', 'txet'] != [] >E >E First list contains 3 additional elements. >E First extra element 0: >E 'smoe' >E >E - ['smoe', 'tihs', 'txet'] >E + [] > aspell_location = '/usr/bin/aspell' > config_file = '.fodt.yml' > expected = ['tihs', 'smoe', 'txet'] > groups = None > hunspell_location = None > names = None > results = Results(words=[], context='tests/test_files/odf/test.fodt: document>body', category='odtcontent', error='Traceback (most recent call last):\n File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline\n wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding)\n File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker\n return get_process_output(process, encoding)\n File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output\n raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors=\'replace\')))\nRuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading.\n') > running = 'aspell' > self = <tests.filters.test_odf.TestODFFilter testMethod=test_fodt> > sources = None > verbose = 4 > words = set() >----------------------------- Captured stdout call ----------------------------- >Using aspell to spellcheck fodt >Running Task: fodt... > >> Processing: tests/test_files/odf/test.fodt > >b'This is some text. And tihs is smoe bad txet . ' >Command: ['/usr/bin/aspell', 'list', '--encoding', 'utf-8', '--lang', 'en', '-d', 'en_US', '--mode', 'none'] >Context: tests/test_files/odf/test.fodt: document>body >Traceback (most recent call last): > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline > wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker > return get_process_output(process, encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output > raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors='replace'))) >RuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading. > > >_______________________ TestODFFilter.test_fodt_chained ________________________ > >self = <tests.filters.test_odf.TestODFFilter testMethod=test_fodt_chained> > > def test_fodt_chained(self): > """Test `fodt` chained files.""" > > config = self.dedent( > """ > matrix: > - name: fodt > sources: > - 'tests/**/*.fodt' > aspell: > lang: en > d: en_US > hunspell: > d: en_US > pipeline: > - pyspelling.filters.text > - pyspelling.filters.odf > """ > ).format(self.tempdir) > self.mktemp('.fodt.yml', config, 'utf-8') >> self.assert_spellcheck('.fodt.yml', ['tihs', 'smoe', 'txet']) > >config = ('matrix:\n' > '- name: fodt\n' > ' sources:\n' > " - 'tests/**/*.fodt'\n" > ' aspell:\n' > ' lang: en\n' > ' d: en_US\n' > ' hunspell:\n' > ' d: en_US\n' > ' pipeline:\n' > ' - pyspelling.filters.text\n' > ' - pyspelling.filters.odf\n') >self = <tests.filters.test_odf.TestODFFilter testMethod=test_fodt_chained> > >tests/filters/test_odf.py:135: >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ >tests/util.py:232: in assert_spellcheck > self.assertEqual(sorted(expected), sorted(list(words))) >E AssertionError: Lists differ: ['smoe', 'tihs', 'txet'] != [] >E >E First list contains 3 additional elements. >E First extra element 0: >E 'smoe' >E >E - ['smoe', 'tihs', 'txet'] >E + [] > aspell_location = '/usr/bin/aspell' > config_file = '.fodt.yml' > expected = ['tihs', 'smoe', 'txet'] > groups = None > hunspell_location = None > names = None > results = Results(words=[], context='tests/test_files/odf/test.fodt: document>body', category='odtcontent', error='Traceback (most recent call last):\n File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline\n wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding)\n File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker\n return get_process_output(process, encoding)\n File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output\n raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors=\'replace\')))\nRuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading.\n') > running = 'aspell' > self = <tests.filters.test_odf.TestODFFilter testMethod=test_fodt_chained> > sources = None > verbose = 4 > words = set() >----------------------------- Captured stdout call ----------------------------- >Using aspell to spellcheck fodt >Running Task: fodt... > >> Processing: tests/test_files/odf/test.fodt > >b'This is some text. And tihs is smoe bad txet . ' >Command: ['/usr/bin/aspell', 'list', '--encoding', 'utf-8', '--lang', 'en', '-d', 'en_US', '--mode', 'none'] >Context: tests/test_files/odf/test.fodt: document>body >Traceback (most recent call last): > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline > wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker > return get_process_output(process, encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output > raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors='replace'))) >RuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading. > > >____________________________ TestODFFilter.test_odp ____________________________ > >self = <tests.filters.test_odf.TestODFFilter testMethod=test_odp> > > def test_odp(self): > """Test `odp` files.""" > > config = self.dedent( > """ > matrix: > - name: odp > sources: > - 'tests/**/*.odp' > aspell: > lang: en > d: en_US > hunspell: > d: en_US > pipeline: > - pyspelling.filters.odf > """ > ).format(self.tempdir) > self.mktemp('.odp.yml', config, 'utf-8') >> self.assert_spellcheck('.odp.yml', ['tihs', 'smoe', 'txet']) > >config = ('matrix:\n' > '- name: odp\n' > ' sources:\n' > " - 'tests/**/*.odp'\n" > ' aspell:\n' > ' lang: en\n' > ' d: en_US\n' > ' hunspell:\n' > ' d: en_US\n' > ' pipeline:\n' > ' - pyspelling.filters.odf\n') >self = <tests.filters.test_odf.TestODFFilter testMethod=test_odp> > >tests/filters/test_odf.py:69: >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ >tests/util.py:232: in assert_spellcheck > self.assertEqual(sorted(expected), sorted(list(words))) >E AssertionError: Lists differ: ['smoe', 'tihs', 'txet'] != [] >E >E First list contains 3 additional elements. >E First extra element 0: >E 'smoe' >E >E - ['smoe', 'tihs', 'txet'] >E + [] > aspell_location = '/usr/bin/aspell' > config_file = '.odp.yml' > expected = ['tihs', 'smoe', 'txet'] > groups = None > hunspell_location = None > names = None > results = Results(words=[], context='tests/test_files/odf/test.odp: slide2:document-content>body>presentation>page', category='odpcontent', error='Traceback (most recent call last):\n File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline\n wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding)\n File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker\n return get_process_output(process, encoding)\n File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output\n raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors=\'replace\')))\nRuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading.\n') > running = 'aspell' > self = <tests.filters.test_odf.TestODFFilter testMethod=test_odp> > sources = None > verbose = 4 > words = set() >----------------------------- Captured stdout call ----------------------------- >Using aspell to spellcheck odp >Running Task: odp... > >> Processing: tests/test_files/odf/test.odp > >b'This is some text. ' >Command: ['/usr/bin/aspell', 'list', '--encoding', 'utf-8', '--lang', 'en', '-d', 'en_US', '--mode', 'none'] >Context: tests/test_files/odf/test.odp: slide2:document-content>body>presentation>page >Traceback (most recent call last): > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline > wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker > return get_process_output(process, encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output > raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors='replace'))) >RuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading. > > >b'And tihs is smoe bad txet . ' >Command: ['/usr/bin/aspell', 'list', '--encoding', 'utf-8', '--lang', 'en', '-d', 'en_US', '--mode', 'none'] >Context: tests/test_files/odf/test.odp: slide2:document-content>body>presentation>page >Traceback (most recent call last): > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline > wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker > return get_process_output(process, encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output > raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors='replace'))) >RuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading. > > >____________________________ TestODFFilter.test_ods ____________________________ > >self = <tests.filters.test_odf.TestODFFilter testMethod=test_ods> > > def test_ods(self): > """Test `ods` files.""" > > config = self.dedent( > """ > matrix: > - name: ods > sources: > - 'tests/**/*.ods' > aspell: > lang: en > d: en_US > hunspell: > d: en_US > pipeline: > - pyspelling.filters.odf > """ > ).format(self.tempdir) > self.mktemp('.ods.yml', config, 'utf-8') >> self.assert_spellcheck('.ods.yml', ['tihs', 'smoe', 'txet']) > >config = ('matrix:\n' > '- name: ods\n' > ' sources:\n' > " - 'tests/**/*.ods'\n" > ' aspell:\n' > ' lang: en\n' > ' d: en_US\n' > ' hunspell:\n' > ' d: en_US\n' > ' pipeline:\n' > ' - pyspelling.filters.odf\n') >self = <tests.filters.test_odf.TestODFFilter testMethod=test_ods> > >tests/filters/test_odf.py:90: >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ >tests/util.py:232: in assert_spellcheck > self.assertEqual(sorted(expected), sorted(list(words))) >E AssertionError: Lists differ: ['smoe', 'tihs', 'txet'] != [] >E >E First list contains 3 additional elements. >E First extra element 0: >E 'smoe' >E >E - ['smoe', 'tihs', 'txet'] >E + [] > aspell_location = '/usr/bin/aspell' > config_file = '.ods.yml' > expected = ['tihs', 'smoe', 'txet'] > groups = None > hunspell_location = None > names = None > results = Results(words=[], context='tests/test_files/odf/test.ods: ', category='odscontent', error='Traceback (most recent call last):\n File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline\n wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding)\n File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker\n return get_process_output(process, encoding)\n File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output\n raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors=\'replace\')))\nRuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading.\n') > running = 'aspell' > self = <tests.filters.test_odf.TestODFFilter testMethod=test_ods> > sources = None > verbose = 4 > words = set() >----------------------------- Captured stdout call ----------------------------- >Using aspell to spellcheck ods >Running Task: ods... > >> Processing: tests/test_files/odf/test.ods > >b'This is some text And tihs is smoe bad txet ' >Command: ['/usr/bin/aspell', 'list', '--encoding', 'utf-8', '--lang', 'en', '-d', 'en_US', '--mode', 'none'] >Context: tests/test_files/odf/test.ods: >Traceback (most recent call last): > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline > wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker > return get_process_output(process, encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output > raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors='replace'))) >RuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading. > > >____________________________ TestODFFilter.test_odt ____________________________ > >self = <tests.filters.test_odf.TestODFFilter testMethod=test_odt> > > def test_odt(self): > """Test `odt` files.""" > > config = self.dedent( > """ > matrix: > - name: odt > sources: > - 'tests/**/*.odt' > aspell: > lang: en > d: en_US > hunspell: > d: en_US > pipeline: > - pyspelling.filters.odf > """ > ).format(self.tempdir) > self.mktemp('.odt.yml', config, 'utf-8') >> self.assert_spellcheck('.odt.yml', ['tihs', 'smoe', 'txet']) > >config = ('matrix:\n' > '- name: odt\n' > ' sources:\n' > " - 'tests/**/*.odt'\n" > ' aspell:\n' > ' lang: en\n' > ' d: en_US\n' > ' hunspell:\n' > ' d: en_US\n' > ' pipeline:\n' > ' - pyspelling.filters.odf\n') >self = <tests.filters.test_odf.TestODFFilter testMethod=test_odt> > >tests/filters/test_odf.py:27: >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ >tests/util.py:232: in assert_spellcheck > self.assertEqual(sorted(expected), sorted(list(words))) >E AssertionError: Lists differ: ['smoe', 'tihs', 'txet'] != [] >E >E First list contains 3 additional elements. >E First extra element 0: >E 'smoe' >E >E - ['smoe', 'tihs', 'txet'] >E + [] > aspell_location = '/usr/bin/aspell' > config_file = '.odt.yml' > expected = ['tihs', 'smoe', 'txet'] > groups = None > hunspell_location = None > names = None > results = Results(words=[], context='tests/test_files/odf/test.odt: ', category='odtcontent', error='Traceback (most recent call last):\n File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline\n wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding)\n File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker\n return get_process_output(process, encoding)\n File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output\n raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors=\'replace\')))\nRuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading.\n') > running = 'aspell' > self = <tests.filters.test_odf.TestODFFilter testMethod=test_odt> > sources = None > verbose = 4 > words = set() >----------------------------- Captured stdout call ----------------------------- >Using aspell to spellcheck odt >Running Task: odt... > >> Processing: tests/test_files/odf/test.odt > >b'This is some text. And tihs is smoe bad txet . ' >Command: ['/usr/bin/aspell', 'list', '--encoding', 'utf-8', '--lang', 'en', '-d', 'en_US', '--mode', 'none'] >Context: tests/test_files/odf/test.odt: >Traceback (most recent call last): > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline > wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker > return get_process_output(process, encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output > raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors='replace'))) >RuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading. > > >________________________ TestODFFilter.test_odt_chained ________________________ > >self = <tests.filters.test_odf.TestODFFilter testMethod=test_odt_chained> > > def test_odt_chained(self): > """Test `odt` chained files.""" > > config = self.dedent( > """ > matrix: > - name: odt > default_encoding: latin-1 > sources: > - 'tests/**/*.odt' > aspell: > lang: en > d: en_US > hunspell: > d: en_US > pipeline: > - pyspelling.filters.text > - pyspelling.filters.odf > """ > ).format(self.tempdir) > self.mktemp('.odt.yml', config, 'utf-8') >> self.assert_spellcheck('.odt.yml', ['tihs', 'smoe', 'txet']) > >config = ('matrix:\n' > '- name: odt\n' > ' default_encoding: latin-1\n' > ' sources:\n' > " - 'tests/**/*.odt'\n" > ' aspell:\n' > ' lang: en\n' > ' d: en_US\n' > ' hunspell:\n' > ' d: en_US\n' > ' pipeline:\n' > ' - pyspelling.filters.text\n' > ' - pyspelling.filters.odf\n') >self = <tests.filters.test_odf.TestODFFilter testMethod=test_odt_chained> > >tests/filters/test_odf.py:113: >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ >tests/util.py:232: in assert_spellcheck > self.assertEqual(sorted(expected), sorted(list(words))) >E AssertionError: Lists differ: ['smoe', 'tihs', 'txet'] != [] >E >E First list contains 3 additional elements. >E First extra element 0: >E 'smoe' >E >E - ['smoe', 'tihs', 'txet'] >E + [] > aspell_location = '/usr/bin/aspell' > config_file = '.odt.yml' > expected = ['tihs', 'smoe', 'txet'] > groups = None > hunspell_location = None > names = None > results = Results(words=[], context='tests/test_files/odf/test.odt: ', category='odtcontent', error='Traceback (most recent call last):\n File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline\n wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding)\n File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker\n return get_process_output(process, encoding)\n File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output\n raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors=\'replace\')))\nRuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading.\n') > running = 'aspell' > self = <tests.filters.test_odf.TestODFFilter testMethod=test_odt_chained> > sources = None > verbose = 4 > words = set() >----------------------------- Captured stdout call ----------------------------- >Using aspell to spellcheck odt >Running Task: odt... > >> Processing: tests/test_files/odf/test.odt > >b'This is some text. And tihs is smoe bad txet . ' >Command: ['/usr/bin/aspell', 'list', '--encoding', 'utf-8', '--lang', 'en', '-d', 'en_US', '--mode', 'none'] >Context: tests/test_files/odf/test.odt: >Traceback (most recent call last): > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline > wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker > return get_process_output(process, encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output > raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors='replace'))) >RuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading. > > >__________________________ TestOOOXMLFilter.test_docx __________________________ > >self = <tests.filters.test_ooxml.TestOOOXMLFilter testMethod=test_docx> > > def test_docx(self): > """Test `docx` files.""" > > config = self.dedent( > """ > matrix: > - name: docx > sources: > - 'tests/**/*.docx' > aspell: > lang: en > d: en_US > hunspell: > d: en_US > pipeline: > - pyspelling.filters.ooxml > """ > ).format(self.tempdir) > self.mktemp('.docx.yml', config, 'utf-8') >> self.assert_spellcheck('.docx.yml', ['tihs', 'smoe', 'txet']) > >config = ('matrix:\n' > '- name: docx\n' > ' sources:\n' > " - 'tests/**/*.docx'\n" > ' aspell:\n' > ' lang: en\n' > ' d: en_US\n' > ' hunspell:\n' > ' d: en_US\n' > ' pipeline:\n' > ' - pyspelling.filters.ooxml\n') >self = <tests.filters.test_ooxml.TestOOOXMLFilter testMethod=test_docx> > >tests/filters/test_ooxml.py:27: >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ >tests/util.py:232: in assert_spellcheck > self.assertEqual(sorted(expected), sorted(list(words))) >E AssertionError: Lists differ: ['smoe', 'tihs', 'txet'] != [] >E >E First list contains 3 additional elements. >E First extra element 0: >E 'smoe' >E >E - ['smoe', 'tihs', 'txet'] >E + [] > aspell_location = '/usr/bin/aspell' > config_file = '.docx.yml' > expected = ['tihs', 'smoe', 'txet'] > groups = None > hunspell_location = None > names = None > results = Results(words=[], context='tests/test_files/ooxml/test.docx: document: ', category='docxcontent', error='Traceback (most recent call last):\n File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline\n wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding)\n File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker\n return get_process_output(process, encoding)\n File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output\n raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors=\'replace\')))\nRuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading.\n') > running = 'aspell' > self = <tests.filters.test_ooxml.TestOOOXMLFilter testMethod=test_docx> > sources = None > verbose = 4 > words = set() >----------------------------- Captured stdout call ----------------------------- >Using aspell to spellcheck docx >Running Task: docx... > >> Processing: tests/test_files/ooxml/test.docx > >b'This is some text. And tihs is smoe bad txet . ' >Command: ['/usr/bin/aspell', 'list', '--encoding', 'utf-8', '--lang', 'en', '-d', 'en_US', '--mode', 'none'] >Context: tests/test_files/ooxml/test.docx: document: >Traceback (most recent call last): > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline > wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker > return get_process_output(process, encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output > raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors='replace'))) >RuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading. > > >______________________ TestOOOXMLFilter.test_docx_chained ______________________ > >self = <tests.filters.test_ooxml.TestOOOXMLFilter testMethod=test_docx_chained> > > def test_docx_chained(self): > """Test `docx` chained files.""" > > config = self.dedent( > """ > matrix: > - name: docx > default_encoding: latin-1 > sources: > - 'tests/**/*.docx' > aspell: > lang: en > d: en_US > hunspell: > d: en_US > pipeline: > - pyspelling.filters.text > - pyspelling.filters.ooxml > """ > ).format(self.tempdir) > self.mktemp('.docx.yml', config, 'utf-8') >> self.assert_spellcheck('.docx.yml', ['tihs', 'smoe', 'txet']) > >config = ('matrix:\n' > '- name: docx\n' > ' default_encoding: latin-1\n' > ' sources:\n' > " - 'tests/**/*.docx'\n" > ' aspell:\n' > ' lang: en\n' > ' d: en_US\n' > ' hunspell:\n' > ' d: en_US\n' > ' pipeline:\n' > ' - pyspelling.filters.text\n' > ' - pyspelling.filters.ooxml\n') >self = <tests.filters.test_ooxml.TestOOOXMLFilter testMethod=test_docx_chained> > >tests/filters/test_ooxml.py:92: >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ >tests/util.py:232: in assert_spellcheck > self.assertEqual(sorted(expected), sorted(list(words))) >E AssertionError: Lists differ: ['smoe', 'tihs', 'txet'] != [] >E >E First list contains 3 additional elements. >E First extra element 0: >E 'smoe' >E >E - ['smoe', 'tihs', 'txet'] >E + [] > aspell_location = '/usr/bin/aspell' > config_file = '.docx.yml' > expected = ['tihs', 'smoe', 'txet'] > groups = None > hunspell_location = None > names = None > results = Results(words=[], context='tests/test_files/ooxml/test.docx: document: ', category='docxcontent', error='Traceback (most recent call last):\n File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline\n wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding)\n File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker\n return get_process_output(process, encoding)\n File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output\n raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors=\'replace\')))\nRuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading.\n') > running = 'aspell' > self = <tests.filters.test_ooxml.TestOOOXMLFilter testMethod=test_docx_chained> > sources = None > verbose = 4 > words = set() >----------------------------- Captured stdout call ----------------------------- >Using aspell to spellcheck docx >Running Task: docx... > >> Processing: tests/test_files/ooxml/test.docx > >b'This is some text. And tihs is smoe bad txet . ' >Command: ['/usr/bin/aspell', 'list', '--encoding', 'iso8859-1', '--lang', 'en', '-d', 'en_US', '--mode', 'none'] >Context: tests/test_files/ooxml/test.docx: document: >Traceback (most recent call last): > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline > wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker > return get_process_output(process, encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output > raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors='replace'))) >RuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading. > > >__________________________ TestOOOXMLFilter.test_pptx __________________________ > >self = <tests.filters.test_ooxml.TestOOOXMLFilter testMethod=test_pptx> > > def test_pptx(self): > """Test `pptx` files.""" > > config = self.dedent( > """ > matrix: > - name: pptx > sources: > - 'tests/**/*.pptx' > aspell: > lang: en > d: en_US > hunspell: > d: en_US > pipeline: > - pyspelling.filters.ooxml > """ > ).format(self.tempdir) > self.mktemp('.pptx.yml', config, 'utf-8') >> self.assert_spellcheck('.pptx.yml', ['tihs', 'smoe', 'txet']) > >config = ('matrix:\n' > '- name: pptx\n' > ' sources:\n' > " - 'tests/**/*.pptx'\n" > ' aspell:\n' > ' lang: en\n' > ' d: en_US\n' > ' hunspell:\n' > ' d: en_US\n' > ' pipeline:\n' > ' - pyspelling.filters.ooxml\n') >self = <tests.filters.test_ooxml.TestOOOXMLFilter testMethod=test_pptx> > >tests/filters/test_ooxml.py:48: >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ >tests/util.py:232: in assert_spellcheck > self.assertEqual(sorted(expected), sorted(list(words))) >E AssertionError: Lists differ: ['smoe', 'tihs', 'txet'] != [] >E >E First list contains 3 additional elements. >E First extra element 0: >E 'smoe' >E >E - ['smoe', 'tihs', 'txet'] >E + [] > aspell_location = '/usr/bin/aspell' > config_file = '.pptx.yml' > expected = ['tihs', 'smoe', 'txet'] > groups = None > hunspell_location = None > names = None > results = Results(words=[], context='tests/test_files/ooxml/test.pptx: slide2: ', category='pptxcontent', error='Traceback (most recent call last):\n File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline\n wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding)\n File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker\n return get_process_output(process, encoding)\n File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output\n raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors=\'replace\')))\nRuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading.\n') > running = 'aspell' > self = <tests.filters.test_ooxml.TestOOOXMLFilter testMethod=test_pptx> > sources = None > verbose = 4 > words = set() >----------------------------- Captured stdout call ----------------------------- >Using aspell to spellcheck pptx >Running Task: pptx... > >> Processing: tests/test_files/ooxml/test.pptx > >b'This is some text. ' >Command: ['/usr/bin/aspell', 'list', '--encoding', 'utf-8', '--lang', 'en', '-d', 'en_US', '--mode', 'none'] >Context: tests/test_files/ooxml/test.pptx: slide1: >Traceback (most recent call last): > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline > wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker > return get_process_output(process, encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output > raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors='replace'))) >RuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading. > > >b'And tihs is smoe bad txet . ' >Command: ['/usr/bin/aspell', 'list', '--encoding', 'utf-8', '--lang', 'en', '-d', 'en_US', '--mode', 'none'] >Context: tests/test_files/ooxml/test.pptx: slide2: >Traceback (most recent call last): > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline > wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker > return get_process_output(process, encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output > raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors='replace'))) >RuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading. > > >__________________________ TestOOOXMLFilter.test_xlsx __________________________ > >self = <tests.filters.test_ooxml.TestOOOXMLFilter testMethod=test_xlsx> > > def test_xlsx(self): > """Test `xlsx` files.""" > > config = self.dedent( > """ > matrix: > - name: xlsx > sources: > - 'tests/**/*.xlsx' > aspell: > lang: en > d: en_US > hunspell: > d: en_US > pipeline: > - pyspelling.filters.ooxml > """ > ).format(self.tempdir) > self.mktemp('.xlsx.yml', config, 'utf-8') >> self.assert_spellcheck('.xlsx.yml', ['tihs', 'smoe', 'txet']) > >config = ('matrix:\n' > '- name: xlsx\n' > ' sources:\n' > " - 'tests/**/*.xlsx'\n" > ' aspell:\n' > ' lang: en\n' > ' d: en_US\n' > ' hunspell:\n' > ' d: en_US\n' > ' pipeline:\n' > ' - pyspelling.filters.ooxml\n') >self = <tests.filters.test_ooxml.TestOOOXMLFilter testMethod=test_xlsx> > >tests/filters/test_ooxml.py:69: >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ >tests/util.py:232: in assert_spellcheck > self.assertEqual(sorted(expected), sorted(list(words))) >E AssertionError: Lists differ: ['smoe', 'tihs', 'txet'] != [] >E >E First list contains 3 additional elements. >E First extra element 0: >E 'smoe' >E >E - ['smoe', 'tihs', 'txet'] >E + [] > aspell_location = '/usr/bin/aspell' > config_file = '.xlsx.yml' > expected = ['tihs', 'smoe', 'txet'] > groups = None > hunspell_location = None > names = None > results = Results(words=[], context='tests/test_files/ooxml/test.xlsx: ', category='xlsxcontent', error='Traceback (most recent call last):\n File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline\n wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding)\n File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker\n return get_process_output(process, encoding)\n File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output\n raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors=\'replace\')))\nRuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading.\n') > running = 'aspell' > self = <tests.filters.test_ooxml.TestOOOXMLFilter testMethod=test_xlsx> > sources = None > verbose = 4 > words = set() >----------------------------- Captured stdout call ----------------------------- >Using aspell to spellcheck xlsx >Running Task: xlsx... > >> Processing: tests/test_files/ooxml/test.xlsx > >b'This is some text And tihs smoe bad txet ' >Command: ['/usr/bin/aspell', 'list', '--encoding', 'utf-8', '--lang', 'en', '-d', 'en_US', '--mode', 'none'] >Context: tests/test_files/ooxml/test.xlsx: >Traceback (most recent call last): > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline > wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker > return get_process_output(process, encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output > raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors='replace'))) >RuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading. > > >____________________________ TestPython.test_python ____________________________ > >self = <tests.filters.test_python.TestPython testMethod=test_python> > > def test_python(self): > """Test Python.""" > > bad_docstring = ['helo', 'begn'] > bad_comments = ['flga', 'graet'] > bad_comments2 = ['recieve', 'teh'] > bad_words = bad_docstring + bad_comments + bad_comments2 > good_words = ['yes', 'word'] > template = self.dedent( > """ > \""" > {} > \""" > def function(): > # {} > # {} > """ > ).format( > '\n'.join(bad_docstring + good_words), > ' '.join(bad_comments + good_words), > ' '.join(bad_comments2 + good_words) > ) > self.mktemp('test.txt', template, 'utf-8') >> self.assert_spellcheck('.python.yml', bad_words) > >bad_comments = ['flga', 'graet'] >bad_comments2 = ['recieve', 'teh'] >bad_docstring = ['helo', 'begn'] >bad_words = ['helo', 'begn', 'flga', 'graet', 'recieve', 'teh'] >good_words = ['yes', 'word'] >self = <tests.filters.test_python.TestPython testMethod=test_python> >template = ('"""\n' > 'helo\n' > 'begn\n' > 'yes\n' > 'word\n' > '"""\n' > 'def function():\n' > ' # flga graet yes word\n' > ' # recieve teh yes word\n') > >tests/filters/test_python.py:52: >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ >tests/util.py:232: in assert_spellcheck > self.assertEqual(sorted(expected), sorted(list(words))) >E AssertionError: Lists differ: ['begn', 'flga', 'graet', 'helo', 'recieve', 'teh'] != [] >E >E First list contains 6 additional elements. >E First extra element 0: >E 'begn' >E >E - ['begn', 'flga', 'graet', 'helo', 'recieve', 'teh'] >E + [] > aspell_location = '/usr/bin/aspell' > config_file = '.python.yml' > expected = ['helo', 'begn', 'flga', 'graet', 'recieve', 'teh'] > groups = None > hunspell_location = None > names = None > results = Results(words=[], context='@test_66_tmp_dir/test.txt(8): function()', category='py-comment', error='Traceback (most recent call last):\n File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline\n wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding)\n File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker\n return get_process_output(process, encoding)\n File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output\n raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors=\'replace\')))\nRuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading.\n') > running = 'aspell' > self = <tests.filters.test_python.TestPython testMethod=test_python> > sources = None > verbose = 4 > words = set() >----------------------------- Captured stdout call ----------------------------- >Using aspell to spellcheck python >Running Task: python... > >> Processing: @test_66_tmp_dir/test.txt > >b'\nhelo\nbegn\nyes\nword\n' >Command: ['/usr/bin/aspell', 'list', '--encoding', 'utf-8', '--lang', 'en', '-d', 'en_US', '--mode', 'none'] >Context: @test_66_tmp_dir/test.txt(1): >Traceback (most recent call last): > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline > wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker > return get_process_output(process, encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output > raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors='replace'))) >RuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading. > > >b'flga graet yes word\nrecieve teh yes word' >Command: ['/usr/bin/aspell', 'list', '--encoding', 'utf-8', '--lang', 'en', '-d', 'en_US', '--mode', 'none'] >Context: @test_66_tmp_dir/test.txt(8): function() >Traceback (most recent call last): > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline > wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker > return get_process_output(process, encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output > raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors='replace'))) >RuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading. > > >__________________________ TestPython.test_same_line ___________________________ > >self = <tests.filters.test_python.TestPython testMethod=test_same_line> > > def test_same_line(self): > """Test docstrings in environment with single line functions.""" > > content = self.dedent( > r''' > """ffskdjalksd.""" > class Example: > def function1(self): return False > > def function2(self): return False > > def function3(self): > """wahtej.""" > > def function4(self): return False > """ajsflas""" > ''' > ) > bad_words = ['ffskdjalksd', 'wahtej'] > self.mktemp('test.txt', content, 'utf-8') >> self.assert_spellcheck('.python.yml', bad_words) > >bad_words = ['ffskdjalksd', 'wahtej'] >content = ('"""ffskdjalksd."""\n' > 'class Example:\n' > ' def function1(self): return False\n' > '\n' > ' def function2(self): return False\n' > '\n' > ' def function3(self):\n' > ' """wahtej."""\n' > '\n' > ' def function4(self): return False\n' > ' """ajsflas"""\n') >self = <tests.filters.test_python.TestPython testMethod=test_same_line> > >tests/filters/test_python.py:74: >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ >tests/util.py:232: in assert_spellcheck > self.assertEqual(sorted(expected), sorted(list(words))) >E AssertionError: Lists differ: ['ffskdjalksd', 'wahtej'] != [] >E >E First list contains 2 additional elements. >E First extra element 0: >E 'ffskdjalksd' >E >E - ['ffskdjalksd', 'wahtej'] >E + [] > aspell_location = '/usr/bin/aspell' > config_file = '.python.yml' > expected = ['ffskdjalksd', 'wahtej'] > groups = None > hunspell_location = None > names = None > results = Results(words=[], context='@test_66_tmp_dir/test.txt(8): Example.function3()', category='py-docstring', error='Traceback (most recent call last):\n File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline\n wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding)\n File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker\n return get_process_output(process, encoding)\n File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output\n raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors=\'replace\')))\nRuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading.\n') > running = 'aspell' > self = <tests.filters.test_python.TestPython testMethod=test_same_line> > sources = None > verbose = 4 > words = set() >----------------------------- Captured stdout call ----------------------------- >Using aspell to spellcheck python >Running Task: python... > >> Processing: @test_66_tmp_dir/test.txt > >b'ffskdjalksd.' >Command: ['/usr/bin/aspell', 'list', '--encoding', 'utf-8', '--lang', 'en', '-d', 'en_US', '--mode', 'none'] >Context: @test_66_tmp_dir/test.txt(1): >Traceback (most recent call last): > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline > wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker > return get_process_output(process, encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output > raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors='replace'))) >RuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading. > > >b'wahtej.' >Command: ['/usr/bin/aspell', 'list', '--encoding', 'utf-8', '--lang', 'en', '-d', 'en_US', '--mode', 'none'] >Context: @test_66_tmp_dir/test.txt(8): Example.function3() >Traceback (most recent call last): > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline > wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker > return get_process_output(process, encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output > raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors='replace'))) >RuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading. > > >_____________________ TestPythonStrings.test_python_bytes ______________________ > >self = <tests.filters.test_python.TestPythonStrings testMethod=test_python_bytes> > > def test_python_bytes(self): > """Test Python byte strings.""" > > bad_words = ['helo', 'begn'] > good_words = ['yes', 'word'] > template = self.dedent( > r""" > def function(): > test = b"\x03\x03\x02{} \tthe \141\541\141\541\x03\xff\x03\x02" > """ > ).format( > '\\x03'.join(bad_words + good_words) > ) > bad_words.append('aaaa') > self.mktemp('test.txt', template, 'utf-8') >> self.assert_spellcheck('.pystrings.yml', bad_words) > >bad_words = ['helo', 'begn', 'aaaa'] >good_words = ['yes', 'word'] >self = <tests.filters.test_python.TestPythonStrings testMethod=test_python_bytes> >template = ('def function():\n' > ' test = b"\\x03\\x03\\x02helo\\x03begn\\x03yes\\x03word \\tthe ' > '\\141\\541\\141\\541\\x03\\xff\\x03\\x02"\n') > >tests/filters/test_python.py:170: >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ >tests/util.py:232: in assert_spellcheck > self.assertEqual(sorted(expected), sorted(list(words))) >E AssertionError: Lists differ: ['aaaa', 'begn', 'helo'] != [] >E >E First list contains 3 additional elements. >E First extra element 0: >E 'aaaa' >E >E - ['aaaa', 'begn', 'helo'] >E + [] > aspell_location = '/usr/bin/aspell' > config_file = '.pystrings.yml' > expected = ['helo', 'begn', 'aaaa'] > groups = None > hunspell_location = None > names = None > results = Results(words=[], context='@test_66_tmp_dir/test.txt(2): function()', category='py-string', error='Traceback (most recent call last):\n File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline\n wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding)\n File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker\n return get_process_output(process, encoding)\n File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output\n raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors=\'replace\')))\nRuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading.\n') > running = 'aspell' > self = <tests.filters.test_python.TestPythonStrings testMethod=test_python_bytes> > sources = None > verbose = 4 > words = set() >----------------------------- Captured stdout call ----------------------------- >Using aspell to spellcheck python >Running Task: python... > >> Processing: @test_66_tmp_dir/test.txt > >b'\nhelo\nbegn\nyes\nword \nthe aaaa\n' >Command: ['/usr/bin/aspell', 'list', '--encoding', 'utf-8', '--lang', 'en', '-d', 'en_US', '--mode', 'none'] >Context: @test_66_tmp_dir/test.txt(2): function() >Traceback (most recent call last): > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline > wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker > return get_process_output(process, encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output > raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors='replace'))) >RuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading. > > >____________________ TestPythonStrings.test_python_continue ____________________ > >self = <tests.filters.test_python.TestPythonStrings testMethod=test_python_continue> > > def test_python_continue(self): > """Test strings with line continuation.""" > > bad_words = ['helo', 'begn'] > good_words = ['yes', 'word'] > template = self.dedent( > r""" > def function(): > test = "{} \tthe\ > aaaa" > """ > ).format( > ' '.join(bad_words + good_words) > ) > bad_words.append('aaaa') > self.mktemp('test.txt', template, 'utf-8') >> self.assert_spellcheck('.pystrings.yml', bad_words) > >bad_words = ['helo', 'begn', 'aaaa'] >good_words = ['yes', 'word'] >self = <tests.filters.test_python.TestPythonStrings testMethod=test_python_continue> >template = 'def function():\n test = "helo begn yes word \\tthe\\\n aaaa"\n' > >tests/filters/test_python.py:119: >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ >tests/util.py:232: in assert_spellcheck > self.assertEqual(sorted(expected), sorted(list(words))) >E AssertionError: Lists differ: ['aaaa', 'begn', 'helo'] != [] >E >E First list contains 3 additional elements. >E First extra element 0: >E 'aaaa' >E >E - ['aaaa', 'begn', 'helo'] >E + [] > aspell_location = '/usr/bin/aspell' > config_file = '.pystrings.yml' > expected = ['helo', 'begn', 'aaaa'] > groups = None > hunspell_location = None > names = None > results = Results(words=[], context='@test_66_tmp_dir/test.txt(2): function()', category='py-string', error='Traceback (most recent call last):\n File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline\n wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding)\n File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker\n return get_process_output(process, encoding)\n File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output\n raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors=\'replace\')))\nRuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading.\n') > running = 'aspell' > self = <tests.filters.test_python.TestPythonStrings testMethod=test_python_continue> > sources = None > verbose = 4 > words = set() >----------------------------- Captured stdout call ----------------------------- >Using aspell to spellcheck python >Running Task: python... > >> Processing: @test_66_tmp_dir/test.txt > >b'helo begn yes word \tthe aaaa' >Command: ['/usr/bin/aspell', 'list', '--encoding', 'utf-8', '--lang', 'en', '-d', 'en_US', '--mode', 'none'] >Context: @test_66_tmp_dir/test.txt(2): function() >Traceback (most recent call last): > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline > wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker > return get_process_output(process, encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output > raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors='replace'))) >RuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading. > > >_____________________ TestPythonStrings.test_python_format _____________________ > >self = <tests.filters.test_python.TestPythonStrings testMethod=test_python_format> > > def test_python_format(self): > """Test Python format strings.""" > > bad_words = ['helo', 'begn'] > good_words = ['yes', 'word'] > template = self.dedent( > r""" > def function(): > aaaa = "text" > test = f"{} \tthe {{aaaa}}" > """ > ).format( > ' '.join(bad_words + good_words) > ) > > self.mktemp('test.txt', template, 'utf-8') >> self.assert_spellcheck('.pystrings.yml', bad_words) > >bad_words = ['helo', 'begn'] >good_words = ['yes', 'word'] >self = <tests.filters.test_python.TestPythonStrings testMethod=test_python_format> >template = ('def function():\n' > ' aaaa = "text"\n' > ' test = f"helo begn yes word \\tthe {aaaa}"\n') > >tests/filters/test_python.py:205: >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ >tests/util.py:232: in assert_spellcheck > self.assertEqual(sorted(expected), sorted(list(words))) >E AssertionError: Lists differ: ['begn', 'helo'] != [] >E >E First list contains 2 additional elements. >E First extra element 0: >E 'begn' >E >E - ['begn', 'helo'] >E + [] > aspell_location = '/usr/bin/aspell' > config_file = '.pystrings.yml' > expected = ['helo', 'begn'] > groups = None > hunspell_location = None > names = None > results = Results(words=[], context='@test_66_tmp_dir/test.txt(3): function()', category='py-string', error='Traceback (most recent call last):\n File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline\n wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding)\n File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker\n return get_process_output(process, encoding)\n File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output\n raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors=\'replace\')))\nRuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading.\n') > running = 'aspell' > self = <tests.filters.test_python.TestPythonStrings testMethod=test_python_format> > sources = None > verbose = 4 > words = set() >----------------------------- Captured stdout call ----------------------------- >Using aspell to spellcheck python >Running Task: python... > >> Processing: @test_66_tmp_dir/test.txt > >b'text' >Command: ['/usr/bin/aspell', 'list', '--encoding', 'utf-8', '--lang', 'en', '-d', 'en_US', '--mode', 'none'] >Context: @test_66_tmp_dir/test.txt(2): function() >Traceback (most recent call last): > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline > wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker > return get_process_output(process, encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output > raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors='replace'))) >RuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading. > > >b'helo begn yes word \tthe ' >Command: ['/usr/bin/aspell', 'list', '--encoding', 'utf-8', '--lang', 'en', '-d', 'en_US', '--mode', 'none'] >Context: @test_66_tmp_dir/test.txt(3): function() >Traceback (most recent call last): > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline > wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker > return get_process_output(process, encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output > raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors='replace'))) >RuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading. > > >______________________ TestPythonStrings.test_python_raw _______________________ > >self = <tests.filters.test_python.TestPythonStrings testMethod=test_python_raw> > > def test_python_raw(self): > """Test Python raw strings.""" > > bad_words = ['helo', 'begn'] > good_words = ['yes', 'word'] > template = self.dedent( > r""" > def function(): > test = r"{} \tthe" > """ > ).format( > ' '.join(bad_words + good_words) > ) > bad_words.append('tthe') > self.mktemp('test.txt', template, 'utf-8') >> self.assert_spellcheck('.pystrings.yml', bad_words) > >bad_words = ['helo', 'begn', 'tthe'] >good_words = ['yes', 'word'] >self = <tests.filters.test_python.TestPythonStrings testMethod=test_python_raw> >template = 'def function():\n test = r"helo begn yes word \\tthe"\n' > >tests/filters/test_python.py:136: >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ >tests/util.py:232: in assert_spellcheck > self.assertEqual(sorted(expected), sorted(list(words))) >E AssertionError: Lists differ: ['begn', 'helo', 'tthe'] != [] >E >E First list contains 3 additional elements. >E First extra element 0: >E 'begn' >E >E - ['begn', 'helo', 'tthe'] >E + [] > aspell_location = '/usr/bin/aspell' > config_file = '.pystrings.yml' > expected = ['helo', 'begn', 'tthe'] > groups = None > hunspell_location = None > names = None > results = Results(words=[], context='@test_66_tmp_dir/test.txt(2): function()', category='py-string', error='Traceback (most recent call last):\n File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline\n wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding)\n File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker\n return get_process_output(process, encoding)\n File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output\n raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors=\'replace\')))\nRuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading.\n') > running = 'aspell' > self = <tests.filters.test_python.TestPythonStrings testMethod=test_python_raw> > sources = None > verbose = 4 > words = set() >----------------------------- Captured stdout call ----------------------------- >Using aspell to spellcheck python >Running Task: python... > >> Processing: @test_66_tmp_dir/test.txt > >b'helo begn yes word \\tthe' >Command: ['/usr/bin/aspell', 'list', '--encoding', 'utf-8', '--lang', 'en', '-d', 'en_US', '--mode', 'none'] >Context: @test_66_tmp_dir/test.txt(2): function() >Traceback (most recent call last): > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline > wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker > return get_process_output(process, encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output > raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors='replace'))) >RuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading. > > >___________________ TestPythonStrings.test_python_raw_bytes ____________________ > >self = <tests.filters.test_python.TestPythonStrings testMethod=test_python_raw_bytes> > > def test_python_raw_bytes(self): > """Test Python raw byte strings.""" > > bad_words = ['helo', 'begn'] > good_words = ['yes', 'word'] > template = self.dedent( > r""" > def function(): > test = rb"{} \tthe \xff" > """ > ).format( > ' '.join(bad_words + good_words) > ) > bad_words.extend(['tthe', 'xff']) > self.mktemp('test.txt', template, 'utf-8') >> self.assert_spellcheck('.pystrings.yml', bad_words) > >bad_words = ['helo', 'begn', 'tthe', 'xff'] >good_words = ['yes', 'word'] >self = <tests.filters.test_python.TestPythonStrings testMethod=test_python_raw_bytes> >template = 'def function():\n test = rb"helo begn yes word \\tthe \\xff"\n' > >tests/filters/test_python.py:187: >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ >tests/util.py:232: in assert_spellcheck > self.assertEqual(sorted(expected), sorted(list(words))) >E AssertionError: Lists differ: ['begn', 'helo', 'tthe', 'xff'] != [] >E >E First list contains 4 additional elements. >E First extra element 0: >E 'begn' >E >E - ['begn', 'helo', 'tthe', 'xff'] >E + [] > aspell_location = '/usr/bin/aspell' > config_file = '.pystrings.yml' > expected = ['helo', 'begn', 'tthe', 'xff'] > groups = None > hunspell_location = None > names = None > results = Results(words=[], context='@test_66_tmp_dir/test.txt(2): function()', category='py-string', error='Traceback (most recent call last):\n File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline\n wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding)\n File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker\n return get_process_output(process, encoding)\n File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output\n raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors=\'replace\')))\nRuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading.\n') > running = 'aspell' > self = <tests.filters.test_python.TestPythonStrings testMethod=test_python_raw_bytes> > sources = None > verbose = 4 > words = set() >----------------------------- Captured stdout call ----------------------------- >Using aspell to spellcheck python >Running Task: python... > >> Processing: @test_66_tmp_dir/test.txt > >b'helo begn yes word \\tthe \\xff' >Command: ['/usr/bin/aspell', 'list', '--encoding', 'utf-8', '--lang', 'en', '-d', 'en_US', '--mode', 'none'] >Context: @test_66_tmp_dir/test.txt(2): function() >Traceback (most recent call last): > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline > wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker > return get_process_output(process, encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output > raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors='replace'))) >RuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading. > > >___________________ TestPythonStrings.test_python_raw_format ___________________ > >self = <tests.filters.test_python.TestPythonStrings testMethod=test_python_raw_format> > > def test_python_raw_format(self): > """Test Python raw format strings.""" > > bad_words = ['helo', 'begn'] > good_words = ['yes', 'word'] > template = self.dedent( > r""" > def function(): > aaaa = "text" > test = fr"{} \tthe {{aaaa}}" > """ > ).format( > ' '.join(bad_words + good_words) > ) > > bad_words.append('tthe') > > self.mktemp('test.txt', template, 'utf-8') >> self.assert_spellcheck('.pystrings.yml', bad_words) > >bad_words = ['helo', 'begn', 'tthe'] >good_words = ['yes', 'word'] >self = <tests.filters.test_python.TestPythonStrings testMethod=test_python_raw_format> >template = ('def function():\n' > ' aaaa = "text"\n' > ' test = fr"helo begn yes word \\tthe {aaaa}"\n') > >tests/filters/test_python.py:225: >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ >tests/util.py:232: in assert_spellcheck > self.assertEqual(sorted(expected), sorted(list(words))) >E AssertionError: Lists differ: ['begn', 'helo', 'tthe'] != [] >E >E First list contains 3 additional elements. >E First extra element 0: >E 'begn' >E >E - ['begn', 'helo', 'tthe'] >E + [] > aspell_location = '/usr/bin/aspell' > config_file = '.pystrings.yml' > expected = ['helo', 'begn', 'tthe'] > groups = None > hunspell_location = None > names = None > results = Results(words=[], context='@test_66_tmp_dir/test.txt(3): function()', category='py-string', error='Traceback (most recent call last):\n File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline\n wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding)\n File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker\n return get_process_output(process, encoding)\n File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output\n raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors=\'replace\')))\nRuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading.\n') > running = 'aspell' > self = <tests.filters.test_python.TestPythonStrings testMethod=test_python_raw_format> > sources = None > verbose = 4 > words = set() >----------------------------- Captured stdout call ----------------------------- >Using aspell to spellcheck python >Running Task: python... > >> Processing: @test_66_tmp_dir/test.txt > >b'text' >Command: ['/usr/bin/aspell', 'list', '--encoding', 'utf-8', '--lang', 'en', '-d', 'en_US', '--mode', 'none'] >Context: @test_66_tmp_dir/test.txt(2): function() >Traceback (most recent call last): > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline > wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker > return get_process_output(process, encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output > raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors='replace'))) >RuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading. > > >b'helo begn yes word \\tthe ' >Command: ['/usr/bin/aspell', 'list', '--encoding', 'utf-8', '--lang', 'en', '-d', 'en_US', '--mode', 'none'] >Context: @test_66_tmp_dir/test.txt(3): function() >Traceback (most recent call last): > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline > wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker > return get_process_output(process, encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output > raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors='replace'))) >RuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading. > > >____________________ TestPythonStrings.test_python_unicode _____________________ > >self = <tests.filters.test_python.TestPythonStrings testMethod=test_python_unicode> > > def test_python_unicode(self): > """Test Python Unicode strings.""" > > bad_words = ['helo', 'begn'] > good_words = ['yes', 'word'] > template = self.dedent( > r""" > def function(): > test = "{} \141\x61\u0061\U00000061\N{{LATIN SMALL LETTER A}}" > """ > ).format( > ' '.join(bad_words + good_words) > ) > bad_words.append('aaaaa') > self.mktemp('test.txt', template, 'utf-8') >> self.assert_spellcheck('.pystrings.yml', bad_words) > >bad_words = ['helo', 'begn', 'aaaaa'] >good_words = ['yes', 'word'] >self = <tests.filters.test_python.TestPythonStrings testMethod=test_python_unicode> >template = ('def function():\n' > ' test = "helo begn yes word \\141\\x61\\u0061\\U00000061\\N{LATIN SMALL ' > 'LETTER A}"\n') > >tests/filters/test_python.py:153: >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ >tests/util.py:232: in assert_spellcheck > self.assertEqual(sorted(expected), sorted(list(words))) >E AssertionError: Lists differ: ['aaaaa', 'begn', 'helo'] != [] >E >E First list contains 3 additional elements. >E First extra element 0: >E 'aaaaa' >E >E - ['aaaaa', 'begn', 'helo'] >E + [] > aspell_location = '/usr/bin/aspell' > config_file = '.pystrings.yml' > expected = ['helo', 'begn', 'aaaaa'] > groups = None > hunspell_location = None > names = None > results = Results(words=[], context='@test_66_tmp_dir/test.txt(2): function()', category='py-string', error='Traceback (most recent call last):\n File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline\n wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding)\n File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker\n return get_process_output(process, encoding)\n File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output\n raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors=\'replace\')))\nRuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading.\n') > running = 'aspell' > self = <tests.filters.test_python.TestPythonStrings testMethod=test_python_unicode> > sources = None > verbose = 4 > words = set() >----------------------------- Captured stdout call ----------------------------- >Using aspell to spellcheck python >Running Task: python... > >> Processing: @test_66_tmp_dir/test.txt > >b'helo begn yes word aaaaa' >Command: ['/usr/bin/aspell', 'list', '--encoding', 'utf-8', '--lang', 'en', '-d', 'en_US', '--mode', 'none'] >Context: @test_66_tmp_dir/test.txt(2): function() >Traceback (most recent call last): > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline > wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker > return get_process_output(process, encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output > raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors='replace'))) >RuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading. > > >___________________ TestPythonStringAllow.test_exclude_bytes ___________________ > >self = <tests.filters.test_python.TestPythonStringAllow testMethod=test_exclude_bytes> > > def test_exclude_bytes(self): > """Test exclude bytes.""" > > config = self.dedent( > """ > matrix: > - name: python > sources: > - '{}/**/*.txt' > aspell: > lang: en > d: en_US > hunspell: > d: en_US > pipeline: > - pyspelling.filters.python: > strings: true > string_types: urf > """ > ).format(self.tempdir) > self.mktemp('.python.yml', config, 'utf-8') >> self.assert_spellcheck('.python.yml', ['aaaa', 'bbbb', 'dddd', 'eeee', 'gggg']) > >config = ('matrix:\n' > '- name: python\n' > ' sources:\n' > " - '@test_66_tmp_dir/**/*.txt'\n" > ' aspell:\n' > ' lang: en\n' > ' d: en_US\n' > ' hunspell:\n' > ' d: en_US\n' > ' pipeline:\n' > ' - pyspelling.filters.python:\n' > ' strings: true\n' > ' string_types: urf\n') >self = <tests.filters.test_python.TestPythonStringAllow testMethod=test_exclude_bytes> > >tests/filters/test_python.py:293: >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ >tests/util.py:232: in assert_spellcheck > self.assertEqual(sorted(expected), sorted(list(words))) >E AssertionError: Lists differ: ['aaaa', 'bbbb', 'dddd', 'eeee', 'gggg'] != [] >E >E First list contains 5 additional elements. >E First extra element 0: >E 'aaaa' >E >E - ['aaaa', 'bbbb', 'dddd', 'eeee', 'gggg'] >E + [] > aspell_location = '/usr/bin/aspell' > config_file = '.python.yml' > expected = ['aaaa', 'bbbb', 'dddd', 'eeee', 'gggg'] > groups = None > hunspell_location = None > names = None > results = Results(words=[], context='@test_66_tmp_dir/test.txt(8): func()', category='py-string', error='Traceback (most recent call last):\n File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline\n wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding)\n File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker\n return get_process_output(process, encoding)\n File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output\n raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors=\'replace\')))\nRuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading.\n') > running = 'aspell' > self = <tests.filters.test_python.TestPythonStringAllow testMethod=test_exclude_bytes> > sources = None > verbose = 4 > words = set() >----------------------------- Captured stdout call ----------------------------- >Using aspell to spellcheck python >Running Task: python... > >> Processing: @test_66_tmp_dir/test.txt > >b'aaaa' >Command: ['/usr/bin/aspell', 'list', '--encoding', 'utf-8', '--lang', 'en', '-d', 'en_US', '--mode', 'none'] >Context: @test_66_tmp_dir/test.txt(2): func() >Traceback (most recent call last): > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline > wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker > return get_process_output(process, encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output > raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors='replace'))) >RuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading. > > >b'bbbb' >Command: ['/usr/bin/aspell', 'list', '--encoding', 'utf-8', '--lang', 'en', '-d', 'en_US', '--mode', 'none'] >Context: @test_66_tmp_dir/test.txt(3): func() >Traceback (most recent call last): > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline > wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker > return get_process_output(process, encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output > raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors='replace'))) >RuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading. > > >b'dddd' >Command: ['/usr/bin/aspell', 'list', '--encoding', 'utf-8', '--lang', 'en', '-d', 'en_US', '--mode', 'none'] >Context: @test_66_tmp_dir/test.txt(5): func() >Traceback (most recent call last): > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline > wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker > return get_process_output(process, encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output > raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors='replace'))) >RuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading. > > >b'eeee' >Command: ['/usr/bin/aspell', 'list', '--encoding', 'utf-8', '--lang', 'en', '-d', 'en_US', '--mode', 'none'] >Context: @test_66_tmp_dir/test.txt(6): func() >Traceback (most recent call last): > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline > wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker > return get_process_output(process, encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output > raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors='replace'))) >RuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading. > > >b'gggg' >Command: ['/usr/bin/aspell', 'list', '--encoding', 'utf-8', '--lang', 'en', '-d', 'en_US', '--mode', 'none'] >Context: @test_66_tmp_dir/test.txt(8): func() >Traceback (most recent call last): > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline > wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker > return get_process_output(process, encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output > raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors='replace'))) >RuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading. > > >__________________ TestPythonStringAllow.test_exclude_format ___________________ > >self = <tests.filters.test_python.TestPythonStringAllow testMethod=test_exclude_format> > > def test_exclude_format(self): > """Test exclude format.""" > > config = self.dedent( > """ > matrix: > - name: python > sources: > - '{}/**/*.txt' > aspell: > lang: en > d: en_US > hunspell: > d: en_US > pipeline: > - pyspelling.filters.python: > strings: true > string_types: bur > """ > ).format(self.tempdir) > self.mktemp('.python.yml', config, 'utf-8') >> self.assert_spellcheck('.python.yml', ['aaaa', 'bbbb', 'cccc', 'eeee', 'ffff']) > >config = ('matrix:\n' > '- name: python\n' > ' sources:\n' > " - '@test_66_tmp_dir/**/*.txt'\n" > ' aspell:\n' > ' lang: en\n' > ' d: en_US\n' > ' hunspell:\n' > ' d: en_US\n' > ' pipeline:\n' > ' - pyspelling.filters.python:\n' > ' strings: true\n' > ' string_types: bur\n') >self = <tests.filters.test_python.TestPythonStringAllow testMethod=test_exclude_format> > >tests/filters/test_python.py:316: >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ >tests/util.py:232: in assert_spellcheck > self.assertEqual(sorted(expected), sorted(list(words))) >E AssertionError: Lists differ: ['aaaa', 'bbbb', 'cccc', 'eeee', 'ffff'] != [] >E >E First list contains 5 additional elements. >E First extra element 0: >E 'aaaa' >E >E - ['aaaa', 'bbbb', 'cccc', 'eeee', 'ffff'] >E + [] > aspell_location = '/usr/bin/aspell' > config_file = '.python.yml' > expected = ['aaaa', 'bbbb', 'cccc', 'eeee', 'ffff'] > groups = None > hunspell_location = None > names = None > results = Results(words=[], context='@test_66_tmp_dir/test.txt(7): func()', category='py-string', error='Traceback (most recent call last):\n File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline\n wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding)\n File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker\n return get_process_output(process, encoding)\n File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output\n raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors=\'replace\')))\nRuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading.\n') > running = 'aspell' > self = <tests.filters.test_python.TestPythonStringAllow testMethod=test_exclude_format> > sources = None > verbose = 4 > words = set() >----------------------------- Captured stdout call ----------------------------- >Using aspell to spellcheck python >Running Task: python... > >> Processing: @test_66_tmp_dir/test.txt > >b'aaaa' >Command: ['/usr/bin/aspell', 'list', '--encoding', 'utf-8', '--lang', 'en', '-d', 'en_US', '--mode', 'none'] >Context: @test_66_tmp_dir/test.txt(2): func() >Traceback (most recent call last): > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline > wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker > return get_process_output(process, encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output > raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors='replace'))) >RuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading. > > >b'bbbb' >Command: ['/usr/bin/aspell', 'list', '--encoding', 'utf-8', '--lang', 'en', '-d', 'en_US', '--mode', 'none'] >Context: @test_66_tmp_dir/test.txt(3): func() >Traceback (most recent call last): > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline > wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker > return get_process_output(process, encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output > raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors='replace'))) >RuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading. > > >b'cccc' >Command: ['/usr/bin/aspell', 'list', '--encoding', 'utf-8', '--lang', 'en', '-d', 'en_US', '--mode', 'none'] >Context: @test_66_tmp_dir/test.txt(4): func() >Traceback (most recent call last): > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline > wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker > return get_process_output(process, encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output > raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors='replace'))) >RuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading. > > >b'eeee' >Command: ['/usr/bin/aspell', 'list', '--encoding', 'utf-8', '--lang', 'en', '-d', 'en_US', '--mode', 'none'] >Context: @test_66_tmp_dir/test.txt(6): func() >Traceback (most recent call last): > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline > wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker > return get_process_output(process, encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output > raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors='replace'))) >RuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading. > > >b'ffff' >Command: ['/usr/bin/aspell', 'list', '--encoding', 'utf-8', '--lang', 'en', '-d', 'en_US', '--mode', 'none'] >Context: @test_66_tmp_dir/test.txt(7): func() >Traceback (most recent call last): > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline > wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker > return get_process_output(process, encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output > raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors='replace'))) >RuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading. > > >____________________ TestPythonStringAllow.test_exclude_raw ____________________ > >self = <tests.filters.test_python.TestPythonStringAllow testMethod=test_exclude_raw> > > def test_exclude_raw(self): > """Test exclude raw.""" > > config = self.dedent( > """ > matrix: > - name: python > sources: > - '{}/**/*.txt' > aspell: > lang: en > d: en_US > hunspell: > d: en_US > pipeline: > - pyspelling.filters.python: > strings: true > string_types: buf > """ > ).format(self.tempdir) > self.mktemp('.python.yml', config, 'utf-8') >> self.assert_spellcheck('.python.yml', ['aaaa', 'bbbb', 'cccc', 'dddd']) > >config = ('matrix:\n' > '- name: python\n' > ' sources:\n' > " - '@test_66_tmp_dir/**/*.txt'\n" > ' aspell:\n' > ' lang: en\n' > ' d: en_US\n' > ' hunspell:\n' > ' d: en_US\n' > ' pipeline:\n' > ' - pyspelling.filters.python:\n' > ' strings: true\n' > ' string_types: buf\n') >self = <tests.filters.test_python.TestPythonStringAllow testMethod=test_exclude_raw> > >tests/filters/test_python.py:339: >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ >tests/util.py:232: in assert_spellcheck > self.assertEqual(sorted(expected), sorted(list(words))) >E AssertionError: Lists differ: ['aaaa', 'bbbb', 'cccc', 'dddd'] != [] >E >E First list contains 4 additional elements. >E First extra element 0: >E 'aaaa' >E >E - ['aaaa', 'bbbb', 'cccc', 'dddd'] >E + [] > aspell_location = '/usr/bin/aspell' > config_file = '.python.yml' > expected = ['aaaa', 'bbbb', 'cccc', 'dddd'] > groups = None > hunspell_location = None > names = None > results = Results(words=[], context='@test_66_tmp_dir/test.txt(5): func()', category='py-string', error='Traceback (most recent call last):\n File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline\n wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding)\n File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker\n return get_process_output(process, encoding)\n File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output\n raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors=\'replace\')))\nRuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading.\n') > running = 'aspell' > self = <tests.filters.test_python.TestPythonStringAllow testMethod=test_exclude_raw> > sources = None > verbose = 4 > words = set() >----------------------------- Captured stdout call ----------------------------- >Using aspell to spellcheck python >Running Task: python... > >> Processing: @test_66_tmp_dir/test.txt > >b'aaaa' >Command: ['/usr/bin/aspell', 'list', '--encoding', 'utf-8', '--lang', 'en', '-d', 'en_US', '--mode', 'none'] >Context: @test_66_tmp_dir/test.txt(2): func() >Traceback (most recent call last): > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline > wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker > return get_process_output(process, encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output > raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors='replace'))) >RuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading. > > >b'bbbb' >Command: ['/usr/bin/aspell', 'list', '--encoding', 'utf-8', '--lang', 'en', '-d', 'en_US', '--mode', 'none'] >Context: @test_66_tmp_dir/test.txt(3): func() >Traceback (most recent call last): > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline > wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker > return get_process_output(process, encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output > raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors='replace'))) >RuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading. > > >b'cccc' >Command: ['/usr/bin/aspell', 'list', '--encoding', 'utf-8', '--lang', 'en', '-d', 'en_US', '--mode', 'none'] >Context: @test_66_tmp_dir/test.txt(4): func() >Traceback (most recent call last): > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline > wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker > return get_process_output(process, encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output > raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors='replace'))) >RuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading. > > >b'dddd' >Command: ['/usr/bin/aspell', 'list', '--encoding', 'utf-8', '--lang', 'en', '-d', 'en_US', '--mode', 'none'] >Context: @test_66_tmp_dir/test.txt(5): func() >Traceback (most recent call last): > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline > wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker > return get_process_output(process, encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output > raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors='replace'))) >RuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading. > > >__________________ TestPythonStringAllow.test_exclude_unicode __________________ > >self = <tests.filters.test_python.TestPythonStringAllow testMethod=test_exclude_unicode> > > def test_exclude_unicode(self): > """Test exclude Unicode.""" > > config = self.dedent( > """ > matrix: > - name: python > sources: > - '{}/**/*.txt' > aspell: > lang: en > d: en_US > hunspell: > d: en_US > pipeline: > - pyspelling.filters.python: > strings: true > string_types: brf > """ > ).format(self.tempdir) > self.mktemp('.python.yml', config, 'utf-8') >> self.assert_spellcheck('.python.yml', ['cccc', 'dddd', 'ffff', 'gggg']) > >config = ('matrix:\n' > '- name: python\n' > ' sources:\n' > " - '@test_66_tmp_dir/**/*.txt'\n" > ' aspell:\n' > ' lang: en\n' > ' d: en_US\n' > ' hunspell:\n' > ' d: en_US\n' > ' pipeline:\n' > ' - pyspelling.filters.python:\n' > ' strings: true\n' > ' string_types: brf\n') >self = <tests.filters.test_python.TestPythonStringAllow testMethod=test_exclude_unicode> > >tests/filters/test_python.py:270: >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ >tests/util.py:232: in assert_spellcheck > self.assertEqual(sorted(expected), sorted(list(words))) >E AssertionError: Lists differ: ['cccc', 'dddd', 'ffff', 'gggg'] != [] >E >E First list contains 4 additional elements. >E First extra element 0: >E 'cccc' >E >E - ['cccc', 'dddd', 'ffff', 'gggg'] >E + [] > aspell_location = '/usr/bin/aspell' > config_file = '.python.yml' > expected = ['cccc', 'dddd', 'ffff', 'gggg'] > groups = None > hunspell_location = None > names = None > results = Results(words=[], context='@test_66_tmp_dir/test.txt(8): func()', category='py-string', error='Traceback (most recent call last):\n File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline\n wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding)\n File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker\n return get_process_output(process, encoding)\n File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output\n raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors=\'replace\')))\nRuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading.\n') > running = 'aspell' > self = <tests.filters.test_python.TestPythonStringAllow testMethod=test_exclude_unicode> > sources = None > verbose = 4 > words = set() >----------------------------- Captured stdout call ----------------------------- >Using aspell to spellcheck python >Running Task: python... > >> Processing: @test_66_tmp_dir/test.txt > >b'cccc' >Command: ['/usr/bin/aspell', 'list', '--encoding', 'utf-8', '--lang', 'en', '-d', 'en_US', '--mode', 'none'] >Context: @test_66_tmp_dir/test.txt(4): func() >Traceback (most recent call last): > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline > wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker > return get_process_output(process, encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output > raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors='replace'))) >RuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading. > > >b'dddd' >Command: ['/usr/bin/aspell', 'list', '--encoding', 'utf-8', '--lang', 'en', '-d', 'en_US', '--mode', 'none'] >Context: @test_66_tmp_dir/test.txt(5): func() >Traceback (most recent call last): > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline > wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker > return get_process_output(process, encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output > raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors='replace'))) >RuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading. > > >b'ffff' >Command: ['/usr/bin/aspell', 'list', '--encoding', 'utf-8', '--lang', 'en', '-d', 'en_US', '--mode', 'none'] >Context: @test_66_tmp_dir/test.txt(7): func() >Traceback (most recent call last): > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline > wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker > return get_process_output(process, encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output > raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors='replace'))) >RuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading. > > >b'gggg' >Command: ['/usr/bin/aspell', 'list', '--encoding', 'utf-8', '--lang', 'en', '-d', 'en_US', '--mode', 'none'] >Context: @test_66_tmp_dir/test.txt(8): func() >Traceback (most recent call last): > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline > wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker > return get_process_output(process, encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output > raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors='replace'))) >RuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading. > > >____________________ TestPythonStringAllow.test_include_all ____________________ > >self = <tests.filters.test_python.TestPythonStringAllow testMethod=test_include_all> > > def test_include_all(self): > """Test include all.""" > > config = self.dedent( > """ > matrix: > - name: python > sources: > - '{}/**/*.txt' > aspell: > lang: en > d: en_US > hunspell: > d: en_US > pipeline: > - pyspelling.filters.python: > strings: true > string_types: '*' > """ > ).format(self.tempdir) > self.mktemp('.python.yml', config, 'utf-8') >> self.assert_spellcheck('.python.yml', ['aaaa', 'bbbb', 'cccc', 'dddd', 'eeee', 'ffff', 'gggg']) > >config = ('matrix:\n' > '- name: python\n' > ' sources:\n' > " - '@test_66_tmp_dir/**/*.txt'\n" > ' aspell:\n' > ' lang: en\n' > ' d: en_US\n' > ' hunspell:\n' > ' d: en_US\n' > ' pipeline:\n' > ' - pyspelling.filters.python:\n' > ' strings: true\n' > " string_types: '*'\n") >self = <tests.filters.test_python.TestPythonStringAllow testMethod=test_include_all> > >tests/filters/test_python.py:362: >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ >tests/util.py:232: in assert_spellcheck > self.assertEqual(sorted(expected), sorted(list(words))) >E AssertionError: Lists differ: ['aaaa', 'bbbb', 'cccc', 'dddd', 'eeee', 'ffff', 'gggg'] != [] >E >E First list contains 7 additional elements. >E First extra element 0: >E 'aaaa' >E >E - ['aaaa', 'bbbb', 'cccc', 'dddd', 'eeee', 'ffff', 'gggg'] >E + [] > aspell_location = '/usr/bin/aspell' > config_file = '.python.yml' > expected = ['aaaa', 'bbbb', 'cccc', 'dddd', 'eeee', 'ffff', 'gggg'] > groups = None > hunspell_location = None > names = None > results = Results(words=[], context='@test_66_tmp_dir/test.txt(8): func()', category='py-string', error='Traceback (most recent call last):\n File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline\n wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding)\n File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker\n return get_process_output(process, encoding)\n File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output\n raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors=\'replace\')))\nRuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading.\n') > running = 'aspell' > self = <tests.filters.test_python.TestPythonStringAllow testMethod=test_include_all> > sources = None > verbose = 4 > words = set() >----------------------------- Captured stdout call ----------------------------- >Using aspell to spellcheck python >Running Task: python... > >> Processing: @test_66_tmp_dir/test.txt > >b'aaaa' >Command: ['/usr/bin/aspell', 'list', '--encoding', 'utf-8', '--lang', 'en', '-d', 'en_US', '--mode', 'none'] >Context: @test_66_tmp_dir/test.txt(2): func() >Traceback (most recent call last): > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline > wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker > return get_process_output(process, encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output > raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors='replace'))) >RuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading. > > >b'bbbb' >Command: ['/usr/bin/aspell', 'list', '--encoding', 'utf-8', '--lang', 'en', '-d', 'en_US', '--mode', 'none'] >Context: @test_66_tmp_dir/test.txt(3): func() >Traceback (most recent call last): > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline > wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker > return get_process_output(process, encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output > raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors='replace'))) >RuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading. > > >b'cccc' >Command: ['/usr/bin/aspell', 'list', '--encoding', 'utf-8', '--lang', 'en', '-d', 'en_US', '--mode', 'none'] >Context: @test_66_tmp_dir/test.txt(4): func() >Traceback (most recent call last): > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline > wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker > return get_process_output(process, encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output > raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors='replace'))) >RuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading. > > >b'dddd' >Command: ['/usr/bin/aspell', 'list', '--encoding', 'utf-8', '--lang', 'en', '-d', 'en_US', '--mode', 'none'] >Context: @test_66_tmp_dir/test.txt(5): func() >Traceback (most recent call last): > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline > wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker > return get_process_output(process, encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output > raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors='replace'))) >RuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading. > > >b'eeee' >Command: ['/usr/bin/aspell', 'list', '--encoding', 'utf-8', '--lang', 'en', '-d', 'en_US', '--mode', 'none'] >Context: @test_66_tmp_dir/test.txt(6): func() >Traceback (most recent call last): > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline > wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker > return get_process_output(process, encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output > raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors='replace'))) >RuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading. > > >b'ffff' >Command: ['/usr/bin/aspell', 'list', '--encoding', 'utf-8', '--lang', 'en', '-d', 'en_US', '--mode', 'none'] >Context: @test_66_tmp_dir/test.txt(7): func() >Traceback (most recent call last): > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline > wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker > return get_process_output(process, encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output > raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors='replace'))) >RuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading. > > >b'gggg' >Command: ['/usr/bin/aspell', 'list', '--encoding', 'utf-8', '--lang', 'en', '-d', 'en_US', '--mode', 'none'] >Context: @test_66_tmp_dir/test.txt(8): func() >Traceback (most recent call last): > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline > wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker > return get_process_output(process, encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output > raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors='replace'))) >RuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading. > > >__________________ TestPythonStringAllow.test_include_all_raw __________________ > >self = <tests.filters.test_python.TestPythonStringAllow testMethod=test_include_all_raw> > > def test_include_all_raw(self): > """Test include all raw.""" > > config = self.dedent( > """ > matrix: > - name: python > sources: > - '{}/**/*.txt' > aspell: > lang: en > d: en_US > hunspell: > d: en_US > pipeline: > - pyspelling.filters.python: > strings: true > string_types: 'r*' > """ > ).format(self.tempdir) > self.mktemp('.python.yml', config, 'utf-8') >> self.assert_spellcheck('.python.yml', ['eeee', 'ffff', 'gggg']) > >config = ('matrix:\n' > '- name: python\n' > ' sources:\n' > " - '@test_66_tmp_dir/**/*.txt'\n" > ' aspell:\n' > ' lang: en\n' > ' d: en_US\n' > ' hunspell:\n' > ' d: en_US\n' > ' pipeline:\n' > ' - pyspelling.filters.python:\n' > ' strings: true\n' > " string_types: 'r*'\n") >self = <tests.filters.test_python.TestPythonStringAllow testMethod=test_include_all_raw> > >tests/filters/test_python.py:385: >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ >tests/util.py:232: in assert_spellcheck > self.assertEqual(sorted(expected), sorted(list(words))) >E AssertionError: Lists differ: ['eeee', 'ffff', 'gggg'] != [] >E >E First list contains 3 additional elements. >E First extra element 0: >E 'eeee' >E >E - ['eeee', 'ffff', 'gggg'] >E + [] > aspell_location = '/usr/bin/aspell' > config_file = '.python.yml' > expected = ['eeee', 'ffff', 'gggg'] > groups = None > hunspell_location = None > names = None > results = Results(words=[], context='@test_66_tmp_dir/test.txt(8): func()', category='py-string', error='Traceback (most recent call last):\n File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline\n wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding)\n File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker\n return get_process_output(process, encoding)\n File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output\n raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors=\'replace\')))\nRuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading.\n') > running = 'aspell' > self = <tests.filters.test_python.TestPythonStringAllow testMethod=test_include_all_raw> > sources = None > verbose = 4 > words = set() >----------------------------- Captured stdout call ----------------------------- >Using aspell to spellcheck python >Running Task: python... > >> Processing: @test_66_tmp_dir/test.txt > >b'eeee' >Command: ['/usr/bin/aspell', 'list', '--encoding', 'utf-8', '--lang', 'en', '-d', 'en_US', '--mode', 'none'] >Context: @test_66_tmp_dir/test.txt(6): func() >Traceback (most recent call last): > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline > wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker > return get_process_output(process, encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output > raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors='replace'))) >RuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading. > > >b'ffff' >Command: ['/usr/bin/aspell', 'list', '--encoding', 'utf-8', '--lang', 'en', '-d', 'en_US', '--mode', 'none'] >Context: @test_66_tmp_dir/test.txt(7): func() >Traceback (most recent call last): > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline > wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker > return get_process_output(process, encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output > raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors='replace'))) >RuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading. > > >b'gggg' >Command: ['/usr/bin/aspell', 'list', '--encoding', 'utf-8', '--lang', 'en', '-d', 'en_US', '--mode', 'none'] >Context: @test_66_tmp_dir/test.txt(8): func() >Traceback (most recent call last): > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline > wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker > return get_process_output(process, encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output > raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors='replace'))) >RuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading. > > >________________ TestPythonStringAllow.test_include_all_unicode ________________ > >self = <tests.filters.test_python.TestPythonStringAllow testMethod=test_include_all_unicode> > > def test_include_all_unicode(self): > """Test include all Unicode.""" > > config = self.dedent( > """ > matrix: > - name: python > sources: > - '{}/**/*.txt' > aspell: > lang: en > d: en_US > hunspell: > d: en_US > pipeline: > - pyspelling.filters.python: > strings: true > string_types: 'u*' > """ > ).format(self.tempdir) > self.mktemp('.python.yml', config, 'utf-8') >> self.assert_spellcheck('.python.yml', ['aaaa', 'bbbb', 'eeee']) > >config = ('matrix:\n' > '- name: python\n' > ' sources:\n' > " - '@test_66_tmp_dir/**/*.txt'\n" > ' aspell:\n' > ' lang: en\n' > ' d: en_US\n' > ' hunspell:\n' > ' d: en_US\n' > ' pipeline:\n' > ' - pyspelling.filters.python:\n' > ' strings: true\n' > " string_types: 'u*'\n") >self = <tests.filters.test_python.TestPythonStringAllow testMethod=test_include_all_unicode> > >tests/filters/test_python.py:408: >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ >tests/util.py:232: in assert_spellcheck > self.assertEqual(sorted(expected), sorted(list(words))) >E AssertionError: Lists differ: ['aaaa', 'bbbb', 'eeee'] != [] >E >E First list contains 3 additional elements. >E First extra element 0: >E 'aaaa' >E >E - ['aaaa', 'bbbb', 'eeee'] >E + [] > aspell_location = '/usr/bin/aspell' > config_file = '.python.yml' > expected = ['aaaa', 'bbbb', 'eeee'] > groups = None > hunspell_location = None > names = None > results = Results(words=[], context='@test_66_tmp_dir/test.txt(6): func()', category='py-string', error='Traceback (most recent call last):\n File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline\n wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding)\n File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker\n return get_process_output(process, encoding)\n File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output\n raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors=\'replace\')))\nRuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading.\n') > running = 'aspell' > self = <tests.filters.test_python.TestPythonStringAllow testMethod=test_include_all_unicode> > sources = None > verbose = 4 > words = set() >----------------------------- Captured stdout call ----------------------------- >Using aspell to spellcheck python >Running Task: python... > >> Processing: @test_66_tmp_dir/test.txt > >b'aaaa' >Command: ['/usr/bin/aspell', 'list', '--encoding', 'utf-8', '--lang', 'en', '-d', 'en_US', '--mode', 'none'] >Context: @test_66_tmp_dir/test.txt(2): func() >Traceback (most recent call last): > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline > wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker > return get_process_output(process, encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output > raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors='replace'))) >RuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading. > > >b'bbbb' >Command: ['/usr/bin/aspell', 'list', '--encoding', 'utf-8', '--lang', 'en', '-d', 'en_US', '--mode', 'none'] >Context: @test_66_tmp_dir/test.txt(3): func() >Traceback (most recent call last): > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline > wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker > return get_process_output(process, encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output > raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors='replace'))) >RuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading. > > >b'eeee' >Command: ['/usr/bin/aspell', 'list', '--encoding', 'utf-8', '--lang', 'en', '-d', 'en_US', '--mode', 'none'] >Context: @test_66_tmp_dir/test.txt(6): func() >Traceback (most recent call last): > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline > wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker > return get_process_output(process, encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output > raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors='replace'))) >RuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading. > > >___________________ TestPythonChained.test_python_after_text ___________________ > >self = <tests.filters.test_python.TestPythonChained testMethod=test_python_after_text> > > def test_python_after_text(self): > """Test Python after text.""" > > bad_docstring = ['helo', 'begn'] > bad_comments = ['flga', 'graet'] > bad_comments2 = ['recieve', 'teh'] > bad_words = bad_docstring + bad_comments + bad_comments2 > good_words = ['yes', 'word'] > template = self.dedent( > """ > \""" > {} > \""" > def function(): > # {} > # {} > """ > ).format( > '\n'.join(bad_docstring + good_words), > ' '.join(bad_comments + good_words), > ' '.join(bad_comments2 + good_words) > ) > self.mktemp('test.txt', template, 'utf-8') >> self.assert_spellcheck('.python.yml', bad_words) > >bad_comments = ['flga', 'graet'] >bad_comments2 = ['recieve', 'teh'] >bad_docstring = ['helo', 'begn'] >bad_words = ['helo', 'begn', 'flga', 'graet', 'recieve', 'teh'] >good_words = ['yes', 'word'] >self = <tests.filters.test_python.TestPythonChained testMethod=test_python_after_text> >template = ('"""\n' > 'helo\n' > 'begn\n' > 'yes\n' > 'word\n' > '"""\n' > 'def function():\n' > ' # flga graet yes word\n' > ' # recieve teh yes word\n') > >tests/filters/test_python.py:459: >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ >tests/util.py:232: in assert_spellcheck > self.assertEqual(sorted(expected), sorted(list(words))) >E AssertionError: Lists differ: ['begn', 'flga', 'graet', 'helo', 'recieve', 'teh'] != [] >E >E First list contains 6 additional elements. >E First extra element 0: >E 'begn' >E >E - ['begn', 'flga', 'graet', 'helo', 'recieve', 'teh'] >E + [] > aspell_location = '/usr/bin/aspell' > config_file = '.python.yml' > expected = ['helo', 'begn', 'flga', 'graet', 'recieve', 'teh'] > groups = None > hunspell_location = None > names = None > results = Results(words=[], context='@test_66_tmp_dir/test.txt(8): function()', category='py-comment', error='Traceback (most recent call last):\n File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline\n wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding)\n File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker\n return get_process_output(process, encoding)\n File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output\n raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors=\'replace\')))\nRuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading.\n') > running = 'aspell' > self = <tests.filters.test_python.TestPythonChained testMethod=test_python_after_text> > sources = None > verbose = 4 > words = set() >----------------------------- Captured stdout call ----------------------------- >Using aspell to spellcheck python >Running Task: python... > >> Processing: @test_66_tmp_dir/test.txt > >b'\nhelo\nbegn\nyes\nword\n' >Command: ['/usr/bin/aspell', 'list', '--encoding', 'utf-8', '--lang', 'en', '-d', 'en_US', '--mode', 'none'] >Context: @test_66_tmp_dir/test.txt(1): >Traceback (most recent call last): > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline > wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker > return get_process_output(process, encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output > raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors='replace'))) >RuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading. > > >b'flga graet yes word\nrecieve teh yes word' >Command: ['/usr/bin/aspell', 'list', '--encoding', 'utf-8', '--lang', 'en', '-d', 'en_US', '--mode', 'none'] >Context: @test_66_tmp_dir/test.txt(8): function() >Traceback (most recent call last): > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline > wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker > return get_process_output(process, encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output > raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors='replace'))) >RuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading. > > >___________________ TestStylesheetsCSS.test_stylesheets_css ____________________ > >self = <tests.filters.test_stylesheets.TestStylesheetsCSS testMethod=test_stylesheets_css> > > def test_stylesheets_css(self): > """Test stylesheets CSS.""" > > bad_words = ['flga', 'graet'] > good_words = ['yes', 'word'] > template = self.dedent( > """ > /* > {} > */ > p#id.class, p.other_id.class {{ > color: white; > }} > """ > ).format( > '\n'.join(bad_words + good_words) > ) > self.mktemp('test.txt', template, 'utf-8') >> self.assert_spellcheck('.stylesheets_css.yml', bad_words) > >bad_words = ['flga', 'graet'] >good_words = ['yes', 'word'] >self = <tests.filters.test_stylesheets.TestStylesheetsCSS testMethod=test_stylesheets_css> >template = ('/*\n' > 'flga\n' > 'graet\n' > 'yes\n' > 'word\n' > '*/\n' > 'p#id.class, p.other_id.class {\n' > ' color: white;\n' > '}\n') > >tests/filters/test_stylesheets.py:48: >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ >tests/util.py:232: in assert_spellcheck > self.assertEqual(sorted(expected), sorted(list(words))) >E AssertionError: Lists differ: ['flga', 'graet'] != [] >E >E First list contains 2 additional elements. >E First extra element 0: >E 'flga' >E >E - ['flga', 'graet'] >E + [] > aspell_location = '/usr/bin/aspell' > config_file = '.stylesheets_css.yml' > expected = ['flga', 'graet'] > groups = None > hunspell_location = None > names = None > results = Results(words=[], context='@test_66_tmp_dir/test.txt (1)', category='sass-block-comment', error='Traceback (most recent call last):\n File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline\n wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding)\n File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker\n return get_process_output(process, encoding)\n File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output\n raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors=\'replace\')))\nRuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading.\n') > running = 'aspell' > self = <tests.filters.test_stylesheets.TestStylesheetsCSS testMethod=test_stylesheets_css> > sources = None > verbose = 4 > words = set() >----------------------------- Captured stdout call ----------------------------- >Using aspell to spellcheck css >Running Task: css... > >> Processing: @test_66_tmp_dir/test.txt > >b'\nflga\ngraet\nyes\nword\n' >Command: ['/usr/bin/aspell', 'list', '--encoding', 'utf-8', '--lang', 'en', '-d', 'en_US', '--mode', 'none'] >Context: @test_66_tmp_dir/test.txt (1) >Traceback (most recent call last): > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline > wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker > return get_process_output(process, encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output > raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors='replace'))) >RuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading. > > >__________________ TestStylesheetsSCSS.test_stylesheets_scss ___________________ > >self = <tests.filters.test_stylesheets.TestStylesheetsSCSS testMethod=test_stylesheets_scss> > > def test_stylesheets_scss(self): > """Test stylesheets SCSS.""" > > bad_block = ['helo', 'begn'] > bad_comments = ['flga', 'graet'] > bad_comments2 = ['recieve', 'teh'] > bad_words = bad_block + bad_comments + bad_comments2 > good_words = ['yes', 'word'] > template = self.dedent( > """ > /* > {} > */ > @mixin cover {{ > $color: red; > // {} > // {} > @for $i from 1 through 5 {{ > &.bg-cover#{{$i}} {{ background-color: adjust-hue($color, 15deg * $i) }} > }} > }} > .wrapper {{ @include cover }} > """ > ).format( > '\n'.join(bad_block + good_words), > ' '.join(bad_comments + good_words), > ' '.join(bad_comments2 + good_words) > ) > self.mktemp('test.txt', template, 'utf-8') >> self.assert_spellcheck('.stylesheets_scss.yml', bad_words) > >bad_block = ['helo', 'begn'] >bad_comments = ['flga', 'graet'] >bad_comments2 = ['recieve', 'teh'] >bad_words = ['helo', 'begn', 'flga', 'graet', 'recieve', 'teh'] >good_words = ['yes', 'word'] >self = <tests.filters.test_stylesheets.TestStylesheetsSCSS testMethod=test_stylesheets_scss> >template = ('/*\n' > 'helo\n' > 'begn\n' > 'yes\n' > 'word\n' > '*/\n' > '@mixin cover {\n' > ' $color: red;\n' > ' // flga graet yes word\n' > ' // recieve teh yes word\n' > ' @for $i from 1 through 5 {\n' > ' &.bg-cover#{$i} { background-color: adjust-hue($color, 15deg * $i) }\n' > ' }\n' > '}\n' > '.wrapper { @include cover }\n') > >tests/filters/test_stylesheets.py:105: >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ >tests/util.py:232: in assert_spellcheck > self.assertEqual(sorted(expected), sorted(list(words))) >E AssertionError: Lists differ: ['begn', 'flga', 'graet', 'helo', 'recieve', 'teh'] != [] >E >E First list contains 6 additional elements. >E First extra element 0: >E 'begn' >E >E - ['begn', 'flga', 'graet', 'helo', 'recieve', 'teh'] >E + [] > aspell_location = '/usr/bin/aspell' > config_file = '.stylesheets_scss.yml' > expected = ['helo', 'begn', 'flga', 'graet', 'recieve', 'teh'] > groups = None > hunspell_location = None > names = None > results = Results(words=[], context='@test_66_tmp_dir/test.txt (9)', category='sass-line-comment', error='Traceback (most recent call last):\n File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline\n wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding)\n File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker\n return get_process_output(process, encoding)\n File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output\n raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors=\'replace\')))\nRuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading.\n') > running = 'aspell' > self = <tests.filters.test_stylesheets.TestStylesheetsSCSS testMethod=test_stylesheets_scss> > sources = None > verbose = 4 > words = set() >----------------------------- Captured stdout call ----------------------------- >Using aspell to spellcheck scss >Running Task: scss... > >> Processing: @test_66_tmp_dir/test.txt > >b'\nhelo\nbegn\nyes\nword\n' >Command: ['/usr/bin/aspell', 'list', '--encoding', 'utf-8', '--lang', 'en', '-d', 'en_US', '--mode', 'none'] >Context: @test_66_tmp_dir/test.txt (1) >Traceback (most recent call last): > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline > wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker > return get_process_output(process, encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output > raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors='replace'))) >RuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading. > > >b'flga graet yes word\nrecieve teh yes word' >Command: ['/usr/bin/aspell', 'list', '--encoding', 'utf-8', '--lang', 'en', '-d', 'en_US', '--mode', 'none'] >Context: @test_66_tmp_dir/test.txt (9) >Traceback (most recent call last): > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline > wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker > return get_process_output(process, encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output > raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors='replace'))) >RuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading. > > >__________________ TestStylesheetsSASS.test_stylesheets_sass ___________________ > >self = <tests.filters.test_stylesheets.TestStylesheetsSASS testMethod=test_stylesheets_sass> > > def test_stylesheets_sass(self): > """Test stylesheets SASS.""" > > bad_block = ['helo', 'begn'] > bad_comments = ['flga', 'graet'] > bad_comments2 = ['recieve', 'teh'] > bad_words = bad_block + bad_comments + bad_comments2 > good_words = ['yes', 'word'] > template = self.dedent( > """ > /* > {} > */ > =cover > $color: red > // {} > // {} > @for $i from 1 through 5 > &.bg-cover#{{$i}} > background-color: adjust-hue($color, 15deg * $i) > .wrapper > +cover > """ > ).format( > '\n'.join(bad_block + good_words), > ' '.join(bad_comments + good_words), > ' '.join(bad_comments2 + good_words) > ) > self.mktemp('test.txt', template, 'utf-8') >> self.assert_spellcheck('.stylesheets_sass.yml', bad_words) > >bad_block = ['helo', 'begn'] >bad_comments = ['flga', 'graet'] >bad_comments2 = ['recieve', 'teh'] >bad_words = ['helo', 'begn', 'flga', 'graet', 'recieve', 'teh'] >good_words = ['yes', 'word'] >self = <tests.filters.test_stylesheets.TestStylesheetsSASS testMethod=test_stylesheets_sass> >template = ('/*\n' > 'helo\n' > 'begn\n' > 'yes\n' > 'word\n' > '*/\n' > '=cover\n' > ' $color: red\n' > ' // flga graet yes word\n' > ' // recieve teh yes word\n' > ' @for $i from 1 through 5\n' > ' &.bg-cover#{$i}\n' > ' background-color: adjust-hue($color, 15deg * $i)\n' > '.wrapper\n' > ' +cover\n') > >tests/filters/test_stylesheets.py:162: >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ >tests/util.py:232: in assert_spellcheck > self.assertEqual(sorted(expected), sorted(list(words))) >E AssertionError: Lists differ: ['begn', 'flga', 'graet', 'helo', 'recieve', 'teh'] != [] >E >E First list contains 6 additional elements. >E First extra element 0: >E 'begn' >E >E - ['begn', 'flga', 'graet', 'helo', 'recieve', 'teh'] >E + [] > aspell_location = '/usr/bin/aspell' > config_file = '.stylesheets_sass.yml' > expected = ['helo', 'begn', 'flga', 'graet', 'recieve', 'teh'] > groups = None > hunspell_location = None > names = None > results = Results(words=[], context='@test_66_tmp_dir/test.txt (9)', category='sass-line-comment', error='Traceback (most recent call last):\n File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline\n wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding)\n File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker\n return get_process_output(process, encoding)\n File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output\n raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors=\'replace\')))\nRuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading.\n') > running = 'aspell' > self = <tests.filters.test_stylesheets.TestStylesheetsSASS testMethod=test_stylesheets_sass> > sources = None > verbose = 4 > words = set() >----------------------------- Captured stdout call ----------------------------- >Using aspell to spellcheck scss >Running Task: scss... > >> Processing: @test_66_tmp_dir/test.txt > >b'\nhelo\nbegn\nyes\nword\n' >Command: ['/usr/bin/aspell', 'list', '--encoding', 'utf-8', '--lang', 'en', '-d', 'en_US', '--mode', 'none'] >Context: @test_66_tmp_dir/test.txt (1) >Traceback (most recent call last): > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline > wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker > return get_process_output(process, encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output > raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors='replace'))) >RuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading. > > >b'flga graet yes word\nrecieve teh yes word' >Command: ['/usr/bin/aspell', 'list', '--encoding', 'utf-8', '--lang', 'en', '-d', 'en_US', '--mode', 'none'] >Context: @test_66_tmp_dir/test.txt (9) >Traceback (most recent call last): > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline > wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker > return get_process_output(process, encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output > raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors='replace'))) >RuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading. > > >__________ TestStylesheetsCSSChained.test_stylesheets_css_after_text ___________ > >self = <tests.filters.test_stylesheets.TestStylesheetsCSSChained testMethod=test_stylesheets_css_after_text> > > def test_stylesheets_css_after_text(self): > """Test stylesheets CSS.""" > > bad_words = ['flga', 'graet'] > good_words = ['yes', 'word'] > template = self.dedent( > """ > /* > {} > */ > p#id.class, p.other_id.class {{ > color: white; > }} > """ > ).format( > '\n'.join(bad_words + good_words) > ) > self.mktemp('test.txt', template, 'utf-8') >> self.assert_spellcheck('.stylesheets_css.yml', bad_words) > >bad_words = ['flga', 'graet'] >good_words = ['yes', 'word'] >self = <tests.filters.test_stylesheets.TestStylesheetsCSSChained testMethod=test_stylesheets_css_after_text> >template = ('/*\n' > 'flga\n' > 'graet\n' > 'yes\n' > 'word\n' > '*/\n' > 'p#id.class, p.other_id.class {\n' > ' color: white;\n' > '}\n') > >tests/filters/test_stylesheets.py:209: >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ >tests/util.py:232: in assert_spellcheck > self.assertEqual(sorted(expected), sorted(list(words))) >E AssertionError: Lists differ: ['flga', 'graet'] != [] >E >E First list contains 2 additional elements. >E First extra element 0: >E 'flga' >E >E - ['flga', 'graet'] >E + [] > aspell_location = '/usr/bin/aspell' > config_file = '.stylesheets_css.yml' > expected = ['flga', 'graet'] > groups = None > hunspell_location = None > names = None > results = Results(words=[], context='@test_66_tmp_dir/test.txt (1)', category='sass-block-comment', error='Traceback (most recent call last):\n File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline\n wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding)\n File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker\n return get_process_output(process, encoding)\n File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output\n raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors=\'replace\')))\nRuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading.\n') > running = 'aspell' > self = <tests.filters.test_stylesheets.TestStylesheetsCSSChained testMethod=test_stylesheets_css_after_text> > sources = None > verbose = 4 > words = set() >----------------------------- Captured stdout call ----------------------------- >Using aspell to spellcheck css >Running Task: css... > >> Processing: @test_66_tmp_dir/test.txt > >b'\nflga\ngraet\nyes\nword\n' >Command: ['/usr/bin/aspell', 'list', '--encoding', 'utf-8', '--lang', 'en', '-d', 'en_US', '--mode', 'none'] >Context: @test_66_tmp_dir/test.txt (1) >Traceback (most recent call last): > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline > wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker > return get_process_output(process, encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output > raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors='replace'))) >RuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading. > > >______________________________ TestText.test_text ______________________________ > >self = <tests.filters.test_text.TestText testMethod=test_text> > > def test_text(self): > """Test text.""" > > bad_words = ['helo', 'begn'] > good_words = ['yes', 'word'] > self.mktemp('test.txt', '\n'.join(bad_words + good_words), 'utf-8') >> self.assert_spellcheck('.text.yml', bad_words) > >bad_words = ['helo', 'begn'] >good_words = ['yes', 'word'] >self = <tests.filters.test_text.TestText testMethod=test_text> > >tests/filters/test_text.py:35: >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ >tests/util.py:232: in assert_spellcheck > self.assertEqual(sorted(expected), sorted(list(words))) >E AssertionError: Lists differ: ['begn', 'helo'] != [] >E >E First list contains 2 additional elements. >E First extra element 0: >E 'begn' >E >E - ['begn', 'helo'] >E + [] > aspell_location = '/usr/bin/aspell' > config_file = '.text.yml' > expected = ['helo', 'begn'] > groups = None > hunspell_location = None > names = None > results = Results(words=[], context='@test_66_tmp_dir/test.txt', category='text', error='Traceback (most recent call last):\n File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline\n wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding)\n File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker\n return get_process_output(process, encoding)\n File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output\n raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors=\'replace\')))\nRuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading.\n') > running = 'aspell' > self = <tests.filters.test_text.TestText testMethod=test_text> > sources = None > verbose = 4 > words = set() >----------------------------- Captured stdout call ----------------------------- >Using aspell to spellcheck text >Running Task: text... > >> Processing: @test_66_tmp_dir/test.txt > >b'helo\nbegn\nyes\nword' >Command: ['/usr/bin/aspell', 'list', '--encoding', 'utf-8', '--lang', 'en', '-d', 'en_US', '--mode', 'none'] >Context: @test_66_tmp_dir/test.txt >Traceback (most recent call last): > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline > wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker > return get_process_output(process, encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output > raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors='replace'))) >RuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading. > > >___________________________ TestText.test_text_utf16 ___________________________ > >self = <tests.filters.test_text.TestText testMethod=test_text_utf16> > > def test_text_utf16(self): > """Test text `UTF-16`.""" > > bad_words = ['helo', 'begn'] > good_words = ['yes', 'word'] > self.mktemp('test.txt', '\n'.join(bad_words + good_words), 'utf-16') >> self.assert_spellcheck('.text.yml', bad_words) > >bad_words = ['helo', 'begn'] >good_words = ['yes', 'word'] >self = <tests.filters.test_text.TestText testMethod=test_text_utf16> > >tests/filters/test_text.py:43: >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ >tests/util.py:232: in assert_spellcheck > self.assertEqual(sorted(expected), sorted(list(words))) >E AssertionError: Lists differ: ['begn', 'helo'] != [] >E >E First list contains 2 additional elements. >E First extra element 0: >E 'begn' >E >E - ['begn', 'helo'] >E + [] > aspell_location = '/usr/bin/aspell' > config_file = '.text.yml' > expected = ['helo', 'begn'] > groups = None > hunspell_location = None > names = None > results = Results(words=[], context='@test_66_tmp_dir/test.txt', category='text', error='Traceback (most recent call last):\n File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline\n wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding)\n File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker\n return get_process_output(process, encoding)\n File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output\n raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors=\'replace\')))\nRuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading.\n') > running = 'aspell' > self = <tests.filters.test_text.TestText testMethod=test_text_utf16> > sources = None > verbose = 4 > words = set() >----------------------------- Captured stdout call ----------------------------- >Using aspell to spellcheck text >Running Task: text... > >> Processing: @test_66_tmp_dir/test.txt > >b'helo\nbegn\nyes\nword' >Command: ['/usr/bin/aspell', 'list', '--encoding', 'utf-8', '--lang', 'en', '-d', 'en_US', '--mode', 'none'] >Context: @test_66_tmp_dir/test.txt >Traceback (most recent call last): > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline > wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker > return get_process_output(process, encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output > raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors='replace'))) >RuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading. > > >___________________________ TestText.test_text_utf32 ___________________________ > >self = <tests.filters.test_text.TestText testMethod=test_text_utf32> > > def test_text_utf32(self): > """Test text `UTF-32`.""" > > bad_words = ['helo', 'begn'] > good_words = ['yes', 'word'] > self.mktemp('test.txt', '\n'.join(bad_words + good_words), 'utf-32') >> self.assert_spellcheck('.text.yml', bad_words) > >bad_words = ['helo', 'begn'] >good_words = ['yes', 'word'] >self = <tests.filters.test_text.TestText testMethod=test_text_utf32> > >tests/filters/test_text.py:51: >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ >tests/util.py:232: in assert_spellcheck > self.assertEqual(sorted(expected), sorted(list(words))) >E AssertionError: Lists differ: ['begn', 'helo'] != [] >E >E First list contains 2 additional elements. >E First extra element 0: >E 'begn' >E >E - ['begn', 'helo'] >E + [] > aspell_location = '/usr/bin/aspell' > config_file = '.text.yml' > expected = ['helo', 'begn'] > groups = None > hunspell_location = None > names = None > results = Results(words=[], context='@test_66_tmp_dir/test.txt', category='text', error='Traceback (most recent call last):\n File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline\n wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding)\n File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker\n return get_process_output(process, encoding)\n File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output\n raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors=\'replace\')))\nRuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading.\n') > running = 'aspell' > self = <tests.filters.test_text.TestText testMethod=test_text_utf32> > sources = None > verbose = 4 > words = set() >----------------------------- Captured stdout call ----------------------------- >Using aspell to spellcheck text >Running Task: text... > >> Processing: @test_66_tmp_dir/test.txt > >b'helo\nbegn\nyes\nword' >Command: ['/usr/bin/aspell', 'list', '--encoding', 'utf-8', '--lang', 'en', '-d', 'en_US', '--mode', 'none'] >Context: @test_66_tmp_dir/test.txt >Traceback (most recent call last): > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline > wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker > return get_process_output(process, encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output > raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors='replace'))) >RuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading. > > >____________________ TestTextChained.test_text_after_python ____________________ > >self = <tests.filters.test_text.TestTextChained testMethod=test_text_after_python> > > def test_text_after_python(self): > """Test text after Python.""" > > bad_words = ['helo', 'begn'] > good_words = ['yes', 'word'] > template = self.dedent( > """ > \""" > {} > \""" > """ > ).format('\n'.join(bad_words + good_words)) > self.mktemp('test.txt', template, 'utf-8') >> self.assert_spellcheck('.text.yml', bad_words) > >bad_words = ['helo', 'begn'] >good_words = ['yes', 'word'] >self = <tests.filters.test_text.TestTextChained testMethod=test_text_after_python> >template = '"""\nhelo\nbegn\nyes\nword\n"""\n' > >tests/filters/test_text.py:92: >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ >tests/util.py:232: in assert_spellcheck > self.assertEqual(sorted(expected), sorted(list(words))) >E AssertionError: Lists differ: ['begn', 'helo'] != [] >E >E First list contains 2 additional elements. >E First extra element 0: >E 'begn' >E >E - ['begn', 'helo'] >E + [] > aspell_location = '/usr/bin/aspell' > config_file = '.text.yml' > expected = ['helo', 'begn'] > groups = None > hunspell_location = None > names = None > results = Results(words=[], context='@test_66_tmp_dir/test.txt(1): ', category='text', error='Traceback (most recent call last):\n File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline\n wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding)\n File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker\n return get_process_output(process, encoding)\n File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output\n raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors=\'replace\')))\nRuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading.\n') > running = 'aspell' > self = <tests.filters.test_text.TestTextChained testMethod=test_text_after_python> > sources = None > verbose = 4 > words = set() >----------------------------- Captured stdout call ----------------------------- >Using aspell to spellcheck text >Running Task: text... > >> Processing: @test_66_tmp_dir/test.txt > >b'\nhelo\nbegn\nyes\nword\n' >Command: ['/usr/bin/aspell', 'list', '--encoding', 'utf-8', '--lang', 'en', '-d', 'en_US', '--mode', 'none'] >Context: @test_66_tmp_dir/test.txt(1): >Traceback (most recent call last): > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline > wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker > return get_process_output(process, encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output > raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors='replace'))) >RuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading. > > >_______________________________ TestURL.test_url _______________________________ > >self = <tests.filters.test_url.TestURL testMethod=test_url> > > def test_url(self): > """Test URL.""" > > bad_words = ['helo', 'begn'] > good_words = ['yes', 'word'] > text = self.dedent( > """ > Here is a bad link https://lskjas.com. > {} > Here is a bad email slakj.dlaks@mail.com. > """ > ).format(' '.join(bad_words + good_words)) > self.mktemp('test.txt', text, 'utf-8') >> self.assert_spellcheck('.url.yml', bad_words) > >bad_words = ['helo', 'begn'] >good_words = ['yes', 'word'] >self = <tests.filters.test_url.TestURL testMethod=test_url> >text = ('Here is a bad link https://lskjas.com.\n' > 'helo begn yes word\n' > 'Here is a bad email slakj.dlaks@mail.com.\n') > >tests/filters/test_url.py:42: >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ >tests/util.py:232: in assert_spellcheck > self.assertEqual(sorted(expected), sorted(list(words))) >E AssertionError: Lists differ: ['begn', 'helo'] != [] >E >E First list contains 2 additional elements. >E First extra element 0: >E 'begn' >E >E - ['begn', 'helo'] >E + [] > aspell_location = '/usr/bin/aspell' > config_file = '.url.yml' > expected = ['helo', 'begn'] > groups = None > hunspell_location = None > names = None > results = Results(words=[], context='@test_66_tmp_dir/test.txt', category='url-free', error='Traceback (most recent call last):\n File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline\n wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding)\n File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker\n return get_process_output(process, encoding)\n File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output\n raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors=\'replace\')))\nRuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading.\n') > running = 'aspell' > self = <tests.filters.test_url.TestURL testMethod=test_url> > sources = None > verbose = 4 > words = set() >----------------------------- Captured stdout call ----------------------------- >Using aspell to spellcheck url >Running Task: url... > >> Processing: @test_66_tmp_dir/test.txt > >b'Here is a bad link .\nhelo begn yes word\nHere is a bad email .\n' >Command: ['/usr/bin/aspell', 'list', '--encoding', 'utf-8', '--lang', 'en', '-d', 'en_US', '--mode', 'none'] >Context: @test_66_tmp_dir/test.txt >Traceback (most recent call last): > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline > wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker > return get_process_output(process, encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output > raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors='replace'))) >RuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading. > > >______________________ TestURLChained.test_url_after_text ______________________ > >self = <tests.filters.test_url.TestURLChained testMethod=test_url_after_text> > > def test_url_after_text(self): > """Test URL.""" > > bad_words = ['helo', 'begn'] > good_words = ['yes', 'word'] > text = self.dedent( > """ > Here is a bad link https://lskjas.com. > {} > Here is a bad email slakj.dlaks@mail.com. > """ > ).format(' '.join(bad_words + good_words)) > self.mktemp('test.txt', text, 'utf-8') >> self.assert_spellcheck('.url.yml', bad_words) > >bad_words = ['helo', 'begn'] >good_words = ['yes', 'word'] >self = <tests.filters.test_url.TestURLChained testMethod=test_url_after_text> >text = ('Here is a bad link https://lskjas.com.\n' > 'helo begn yes word\n' > 'Here is a bad email slakj.dlaks@mail.com.\n') > >tests/filters/test_url.py:83: >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ >tests/util.py:232: in assert_spellcheck > self.assertEqual(sorted(expected), sorted(list(words))) >E AssertionError: Lists differ: ['begn', 'helo'] != [] >E >E First list contains 2 additional elements. >E First extra element 0: >E 'begn' >E >E - ['begn', 'helo'] >E + [] > aspell_location = '/usr/bin/aspell' > config_file = '.url.yml' > expected = ['helo', 'begn'] > groups = None > hunspell_location = None > names = None > results = Results(words=[], context='@test_66_tmp_dir/test.txt', category='url-free', error='Traceback (most recent call last):\n File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline\n wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding)\n File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker\n return get_process_output(process, encoding)\n File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output\n raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors=\'replace\')))\nRuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading.\n') > running = 'aspell' > self = <tests.filters.test_url.TestURLChained testMethod=test_url_after_text> > sources = None > verbose = 4 > words = set() >----------------------------- Captured stdout call ----------------------------- >Using aspell to spellcheck url >Running Task: url... > >> Processing: @test_66_tmp_dir/test.txt > >b'Here is a bad link .\nhelo begn yes word\nHere is a bad email .\n' >Command: ['/usr/bin/aspell', 'list', '--encoding', 'utf-8', '--lang', 'en', '-d', 'en_US', '--mode', 'none'] >Context: @test_66_tmp_dir/test.txt >Traceback (most recent call last): > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline > wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker > return get_process_output(process, encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output > raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors='replace'))) >RuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading. > > >___________ TestXMLNamespaceNoDefault.test_xml_namespace_no_default ____________ > >self = <tests.filters.test_xml.TestXMLNamespaceNoDefault testMethod=test_xml_namespace_no_default> > > def test_xml_namespace_no_default(self): > """Test XML namespace with no default.""" > > template = self.dedent( > """ > <?xml version="1.0" encoding="UTF-8"?> > <tag> > <head>aaaa > </head> > <foo:other xmlns:foo="http://me.com/namespaces/foofoo" > xmlns:bar="http://me.com/namespaces/foobar"> > <foo:head> > <foo:title>bbbb</foo:title> > <bar:title>cccc</bar:title> > </foo:head> > <body> > <foo:e1>dddd</foo:e1> > <bar:e1>eeee</bar:e1> > <e1>ffff</e1> > <foo:e2>gggg</foo:e2> > <bar:e2>hhhh</bar:e2> > <e2>iiii</e2> > <foo:e3>jjjj</foo:e3> > <bar:e3>kkkk</bar:e3> > <e3>llll</e3> > </body> > </foo:other> > </tag> > """ > ) > > self.mktemp('test.txt', template, 'utf-8') >> self.assert_spellcheck('.xml.yml', ['dddd', 'ffff']) > >self = <tests.filters.test_xml.TestXMLNamespaceNoDefault testMethod=test_xml_namespace_no_default> >template = ('<?xml version="1.0" encoding="UTF-8"?>\n' > '<tag>\n' > ' <head>aaaa\n' > ' </head>\n' > ' <foo:other xmlns:foo="http://me.com/namespaces/foofoo"\n' > ' xmlns:bar="http://me.com/namespaces/foobar">\n' > ' <foo:head>\n' > ' <foo:title>bbbb</foo:title>\n' > ' <bar:title>cccc</bar:title>\n' > ' </foo:head>\n' > ' <body>\n' > ' <foo:e1>dddd</foo:e1>\n' > ' <bar:e1>eeee</bar:e1>\n' > ' <e1>ffff</e1>\n' > ' <foo:e2>gggg</foo:e2>\n' > ' <bar:e2>hhhh</bar:e2>\n' > ' <e2>iiii</e2>\n' > ' <foo:e3>jjjj</foo:e3>\n' > ' <bar:e3>kkkk</bar:e3>\n' > ' <e3>llll</e3>\n' > ' </body>\n' > ' </foo:other>\n' > '</tag>\n') > >tests/filters/test_xml.py:69: >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ >tests/util.py:232: in assert_spellcheck > self.assertEqual(sorted(expected), sorted(list(words))) >E AssertionError: Lists differ: ['dddd', 'ffff'] != [] >E >E First list contains 2 additional elements. >E First extra element 0: >E 'dddd' >E >E - ['dddd', 'ffff'] >E + [] > aspell_location = '/usr/bin/aspell' > config_file = '.xml.yml' > expected = ['dddd', 'ffff'] > groups = None > hunspell_location = None > names = None > results = Results(words=[], context='@test_66_tmp_dir/test.txt: ', category='xmlcontent', error='Traceback (most recent call last):\n File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline\n wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding)\n File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker\n return get_process_output(process, encoding)\n File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output\n raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors=\'replace\')))\nRuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading.\n') > running = 'aspell' > self = <tests.filters.test_xml.TestXMLNamespaceNoDefault testMethod=test_xml_namespace_no_default> > sources = None > verbose = 4 > words = set() >----------------------------- Captured stdout call ----------------------------- >Using aspell to spellcheck xml >Running Task: xml... > >> Processing: @test_66_tmp_dir/test.txt > >b'dddd ffff ' >Command: ['/usr/bin/aspell', 'list', '--encoding', 'utf-8', '--lang', 'en', '-d', 'en_US', '--mode', 'none'] >Context: @test_66_tmp_dir/test.txt: >Traceback (most recent call last): > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline > wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker > return get_process_output(process, encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output > raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors='replace'))) >RuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading. > > >__________________ TestXMLRoot.test_xml_namespace_no_default ___________________ > >self = <tests.filters.test_xml.TestXMLRoot testMethod=test_xml_namespace_no_default> > > def test_xml_namespace_no_default(self): > """Test XML namespace with no default.""" > > template = self.dedent( > """ > <?xml version="1.0" encoding="UTF-8"?> > <tag> > <head>aaaa > </head> > <foo:other xmlns:foo="http://me.com/namespaces/foofoo" > xmlns:bar="http://me.com/namespaces/foobar"> > <foo:head> > <foo:title>bbbb</foo:title> > <bar:title>cccc</bar:title> > </foo:head> > <body> > <foo:e1>dddd</foo:e1> > <bar:e1>eeee</bar:e1> > <e1>ffff</e1> > <foo:e2>gggg</foo:e2> > <bar:e2>hhhh</bar:e2> > <e2>iiii</e2> > <foo:e3>jjjj</foo:e3> > <bar:e3>kkkk</bar:e3> > <e3>llll</e3> > </body> > </foo:other> > </tag> > """ > ) > > self.mktemp('test.txt', template, 'utf-8') >> self.assert_spellcheck( > '.xml.yml', > ['bbbb', 'cccc', 'dddd', 'eeee', 'ffff', 'gggg', 'hhhh', 'iiii', 'jjjj', 'kkkk', 'llll'] > ) > >self = <tests.filters.test_xml.TestXMLRoot testMethod=test_xml_namespace_no_default> >template = ('<?xml version="1.0" encoding="UTF-8"?>\n' > '<tag>\n' > ' <head>aaaa\n' > ' </head>\n' > ' <foo:other xmlns:foo="http://me.com/namespaces/foofoo"\n' > ' xmlns:bar="http://me.com/namespaces/foobar">\n' > ' <foo:head>\n' > ' <foo:title>bbbb</foo:title>\n' > ' <bar:title>cccc</bar:title>\n' > ' </foo:head>\n' > ' <body>\n' > ' <foo:e1>dddd</foo:e1>\n' > ' <bar:e1>eeee</bar:e1>\n' > ' <e1>ffff</e1>\n' > ' <foo:e2>gggg</foo:e2>\n' > ' <bar:e2>hhhh</bar:e2>\n' > ' <e2>iiii</e2>\n' > ' <foo:e3>jjjj</foo:e3>\n' > ' <bar:e3>kkkk</bar:e3>\n' > ' <e3>llll</e3>\n' > ' </body>\n' > ' </foo:other>\n' > '</tag>\n') > >tests/filters/test_xml.py:132: >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ >tests/util.py:232: in assert_spellcheck > self.assertEqual(sorted(expected), sorted(list(words))) >E AssertionError: Lists differ: ['bbbb', 'cccc', 'dddd', 'eeee', 'ffff', '[41 chars]lll'] != [] >E >E First list contains 11 additional elements. >E First extra element 0: >E 'bbbb' >E >E + [] >E - ['bbbb', >E - 'cccc', >E - 'dddd', >E - 'eeee', >E - 'ffff', >E - 'gggg', >E - 'hhhh', >E - 'iiii', >E - 'jjjj', >E - 'kkkk', >E - 'llll'] > aspell_location = '/usr/bin/aspell' > config_file = '.xml.yml' > expected = ['bbbb', > 'cccc', > 'dddd', > 'eeee', > 'ffff', > 'gggg', > 'hhhh', > 'iiii', > 'jjjj', > 'kkkk', > 'llll'] > groups = None > hunspell_location = None > names = None > results = Results(words=[], context='@test_66_tmp_dir/test.txt: ', category='xmlcontent', error='Traceback (most recent call last):\n File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline\n wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding)\n File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker\n return get_process_output(process, encoding)\n File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output\n raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors=\'replace\')))\nRuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading.\n') > running = 'aspell' > self = <tests.filters.test_xml.TestXMLRoot testMethod=test_xml_namespace_no_default> > sources = None > verbose = 4 > words = set() >----------------------------- Captured stdout call ----------------------------- >Using aspell to spellcheck xml >Running Task: xml... > >> Processing: @test_66_tmp_dir/test.txt > >b'bbbb cccc dddd eeee ffff gggg hhhh iiii jjjj kkkk llll ' >Command: ['/usr/bin/aspell', 'list', '--encoding', 'utf-8', '--lang', 'en', '-d', 'en_US', '--mode', 'none'] >Context: @test_66_tmp_dir/test.txt: >Traceback (most recent call last): > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline > wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker > return get_process_output(process, encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output > raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors='replace'))) >RuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading. > > >_____________________ TestXMLNamespace.test_xml_namespace ______________________ > >self = <tests.filters.test_xml.TestXMLNamespace testMethod=test_xml_namespace> > > def test_xml_namespace(self): > """Test XML namespace with no default.""" > > template = self.dedent( > """ > <?xml version="1.0" encoding="UTF-8"?> > <tag xmlns="http://me.com/namespaces/barbar"> > <head>aaaa > </head> > <foo:other xmlns:foo="http://me.com/namespaces/foofoo" > xmlns:bar="http://me.com/namespaces/foobar"> > <foo:head> > <foo:title>bbbb</foo:title> > <bar:title>cccc</bar:title> > </foo:head> > <body> > <foo:e1>dddd</foo:e1> > <bar:e1>eeee</bar:e1> > <e1>ffff</e1> > <foo:e2>gggg</foo:e2> > <bar:e2>hhhh</bar:e2> > <e2>iiii</e2> > <foo:e3>jjjj</foo:e3> > <bar:e3>kkkk</bar:e3> > <e3>llll</e3> > </body> > </foo:other> > </tag> > """ > ) > > self.mktemp('test.txt', template, 'utf-8') >> self.assert_spellcheck('.xml.yml', ['aaaa', 'dddd', 'ffff', 'jjjj']) > >self = <tests.filters.test_xml.TestXMLNamespace testMethod=test_xml_namespace> >template = ('<?xml version="1.0" encoding="UTF-8"?>\n' > '<tag xmlns="http://me.com/namespaces/barbar">\n' > ' <head>aaaa\n' > ' </head>\n' > ' <foo:other xmlns:foo="http://me.com/namespaces/foofoo"\n' > ' xmlns:bar="http://me.com/namespaces/foobar">\n' > ' <foo:head>\n' > ' <foo:title>bbbb</foo:title>\n' > ' <bar:title>cccc</bar:title>\n' > ' </foo:head>\n' > ' <body>\n' > ' <foo:e1>dddd</foo:e1>\n' > ' <bar:e1>eeee</bar:e1>\n' > ' <e1>ffff</e1>\n' > ' <foo:e2>gggg</foo:e2>\n' > ' <bar:e2>hhhh</bar:e2>\n' > ' <e2>iiii</e2>\n' > ' <foo:e3>jjjj</foo:e3>\n' > ' <bar:e3>kkkk</bar:e3>\n' > ' <e3>llll</e3>\n' > ' </body>\n' > ' </foo:other>\n' > '</tag>\n') > >tests/filters/test_xml.py:203: >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ >tests/util.py:232: in assert_spellcheck > self.assertEqual(sorted(expected), sorted(list(words))) >E AssertionError: Lists differ: ['aaaa', 'dddd', 'ffff', 'jjjj'] != [] >E >E First list contains 4 additional elements. >E First extra element 0: >E 'aaaa' >E >E - ['aaaa', 'dddd', 'ffff', 'jjjj'] >E + [] > aspell_location = '/usr/bin/aspell' > config_file = '.xml.yml' > expected = ['aaaa', 'dddd', 'ffff', 'jjjj'] > groups = None > hunspell_location = None > names = None > results = Results(words=[], context='@test_66_tmp_dir/test.txt: ', category='xmlcontent', error='Traceback (most recent call last):\n File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline\n wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding)\n File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker\n return get_process_output(process, encoding)\n File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output\n raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors=\'replace\')))\nRuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading.\n') > running = 'aspell' > self = <tests.filters.test_xml.TestXMLNamespace testMethod=test_xml_namespace> > sources = None > verbose = 4 > words = set() >----------------------------- Captured stdout call ----------------------------- >Using aspell to spellcheck xml >Running Task: xml... > >> Processing: @test_66_tmp_dir/test.txt > >b'aaaa dddd ffff jjjj ' >Command: ['/usr/bin/aspell', 'list', '--encoding', 'utf-8', '--lang', 'en', '-d', 'en_US', '--mode', 'none'] >Context: @test_66_tmp_dir/test.txt: >Traceback (most recent call last): > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline > wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker > return get_process_output(process, encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output > raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors='replace'))) >RuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading. > > >__________________________ TestWildcard.test_wildcard __________________________ > >self = <tests.flow_control.test_wildcard.TestWildcard testMethod=test_wildcard> > > def test_wildcard(self): > """Test wildcard.""" > > bad_words = ['helo', 'begn'] > good_words = ['yes', 'word'] > template = self.dedent( > """ > #!/usr/bin/env python > # -*- coding: utf-8 -*- > \""" > #! {} > \""" > def function(): # noqa > # ``` > # alsjf alsk > # eurpoq qeiew > # ``` > """ > ).format( > '\n'.join(bad_words + good_words) > ) > self.mktemp('test.txt', template, 'utf-8') >> self.assert_spellcheck('.wildcard.yml', bad_words) > >bad_words = ['helo', 'begn'] >good_words = ['yes', 'word'] >self = <tests.flow_control.test_wildcard.TestWildcard testMethod=test_wildcard> >template = ('#!/usr/bin/env python\n' > '# -*- coding: utf-8 -*-\n' > '"""\n' > '#! helo\n' > 'begn\n' > 'yes\n' > 'word\n' > '"""\n' > 'def function(): # noqa\n' > ' # ```\n' > ' # alsjf alsk\n' > ' # eurpoq qeiew\n' > ' # ```\n') > >tests/flow_control/test_wildcard.py:76: >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ >tests/util.py:232: in assert_spellcheck > self.assertEqual(sorted(expected), sorted(list(words))) >E AssertionError: Lists differ: ['begn', 'helo'] != [] >E >E First list contains 2 additional elements. >E First extra element 0: >E 'begn' >E >E - ['begn', 'helo'] >E + [] > aspell_location = '/usr/bin/aspell' > config_file = '.wildcard.yml' > expected = ['helo', 'begn'] > groups = None > hunspell_location = None > names = None > results = Results(words=[], context='@test_66_tmp_dir/test.txt(3): ', category='context', error='Traceback (most recent call last):\n File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline\n wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding)\n File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker\n return get_process_output(process, encoding)\n File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output\n raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors=\'replace\')))\nRuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading.\n') > running = 'aspell' > self = <tests.flow_control.test_wildcard.TestWildcard testMethod=test_wildcard> > sources = None > verbose = 4 > words = set() >----------------------------- Captured stdout call ----------------------------- >Using aspell to spellcheck python >Running Task: python... > >> Processing: @test_66_tmp_dir/test.txt > >b'\n#! helo\nbegn\nyes\nword\n' >Command: ['/usr/bin/aspell', 'list', '--encoding', 'utf-8', '--lang', 'en', '-d', 'en_US', '--mode', 'none'] >Context: @test_66_tmp_dir/test.txt(3): >Traceback (most recent call last): > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/__init__.py", line 165, in _spelling_pipeline > wordlist = util.call_spellchecker(cmd, input_text=text, encoding=encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 136, in call_spellchecker > return get_process_output(process, encoding) > File "/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2/pyspelling/util/__init__.py", line 89, in get_process_output > raise RuntimeError("Runtime Error: %s" % (output[0].rstrip().decode(encoding, errors='replace'))) >RuntimeError: Runtime Error: Error: The file "/usr/lib64/aspell-0.60/en_US" can not be opened for reading. > > >=========================== short test summary info ============================ >FAILED tests/test_config.py::TestGlob::test_glob_no_limit - AssertionError: L... >FAILED tests/test_config.py::TestNoPipeline::test_no_pipeline - AssertionErro... >FAILED tests/test_config.py::TestNoPipeline::test_no_pipeline_wordlist - Runt... >FAILED tests/test_config.py::TestNameGroup::test_all - AssertionError: Lists ... >FAILED tests/test_config.py::TestNameGroup::test_group - AssertionError: List... >FAILED tests/test_config.py::TestNameGroup::test_name - AssertionError: Lists... >FAILED tests/test_config.py::TestNameGroup::test_sources - AssertionError: Li... >FAILED tests/test_config.py::TestNameGroup::test_sources_invalid - AssertionE... >FAILED tests/filters/test_context.py::TestContext::test_context - AssertionEr... >FAILED tests/filters/test_context.py::TestContextChained::test_context_after_text >FAILED tests/filters/test_cpp.py::TestCPP::test_cpp - AssertionError: Lists d... >FAILED tests/filters/test_cpp.py::TestCPPGroupedComments::test_cpp_grouped_comments >FAILED tests/filters/test_cpp.py::TestCPPStringAllow::test_exclude_raw - Asse... >FAILED tests/filters/test_cpp.py::TestCPPStringAllow::test_exclude_standard >FAILED tests/filters/test_cpp.py::TestCPPStringAllow::test_exclude_unicode - ... >FAILED tests/filters/test_cpp.py::TestCPPStringAllow::test_exclude_wide - Ass... >FAILED tests/filters/test_cpp.py::TestCPPStringAllow::test_include_all - Asse... >FAILED tests/filters/test_cpp.py::TestCPPStringAllow::test_include_all_raw - ... >FAILED tests/filters/test_cpp.py::TestCPPStringAllow::test_include_all_unicode >FAILED tests/filters/test_cpp.py::TestCPPStrings::test_cpp_strings - Assertio... >FAILED tests/filters/test_cpp.py::TestCPPStrings::test_cpp_strings_escapes - ... >FAILED tests/filters/test_cpp.py::TestCPPGeneric::test_cpp - AssertionError: ... >FAILED tests/filters/test_cpp.py::TestCPPChained::test_cpp_after_text - Asser... >FAILED tests/filters/test_html.py::TestHTML::test_html - AssertionError: List... >FAILED tests/filters/test_html.py::TestCSSEscapes::test_css_escapes - Asserti... >FAILED tests/filters/test_html.py::TestHtml5AttrNamespace::test_html_attr_namespace1 >FAILED tests/filters/test_html.py::TestHtml5AttrNamespace::test_html_attr_namespace2 >FAILED tests/filters/test_html.py::TestHtml5AttrNamespace::test_html_attr_namespace3 >FAILED tests/filters/test_html.py::TestHtml5EmptySelectors::test_css_empty - ... >FAILED tests/filters/test_html.py::TestHtml5OnlySelectors::test_css_only_child >FAILED tests/filters/test_html.py::TestHtml5OnlySelectors::test_css_only_type >FAILED tests/filters/test_html.py::TestHtml5NthOfSelectors::test_css_child_of_s >FAILED tests/filters/test_html.py::TestHtml5NthOfSelectors::test_css_child_of_s_vs_schild >FAILED tests/filters/test_html.py::TestHtml5NthSelectors::test_css_first_child >FAILED tests/filters/test_html.py::TestHtml5NthSelectors::test_css_first_type >FAILED tests/filters/test_html.py::TestHtml5NthSelectors::test_css_last_child >FAILED tests/filters/test_html.py::TestHtml5NthSelectors::test_css_last_type >FAILED tests/filters/test_html.py::TestHtml5NthSelectors::test_css_nth_child1 >FAILED tests/filters/test_html.py::TestHtml5NthSelectors::test_css_nth_child2 >FAILED tests/filters/test_html.py::TestHtml5NthSelectors::test_css_nth_child3 >FAILED tests/filters/test_html.py::TestHtml5NthSelectors::test_css_nth_child_bad >FAILED tests/filters/test_html.py::TestHtml5NthSelectors::test_css_nth_complex_type >FAILED tests/filters/test_html.py::TestHtml5NthSelectors::test_css_nth_even >FAILED tests/filters/test_html.py::TestHtml5NthSelectors::test_css_nth_last_child >FAILED tests/filters/test_html.py::TestHtml5NthSelectors::test_css_nth_last_type >FAILED tests/filters/test_html.py::TestHtml5NthSelectors::test_css_nth_odd - ... >FAILED tests/filters/test_html.py::TestHtml5NthSelectors::test_css_nth_type >FAILED tests/filters/test_html.py::TestHtml5AdvancedSelectors::test_css_nested_pseudo >FAILED tests/filters/test_html.py::TestHtml5AdvancedSelectors::test_css_parents >FAILED tests/filters/test_html.py::TestHtml5AdvancedSelectors::test_css_pseudo >FAILED tests/filters/test_html.py::TestHtml5AdvancedSelectors::test_css_siblings >FAILED tests/filters/test_html.py::TestHtml5AdvancedSelectors::test_has_pseudo >FAILED tests/filters/test_html.py::TestHtml5AdvancedSelectors::test_has_pseudo2 >FAILED tests/filters/test_html.py::TestHtml5AdvancedSelectors2::test_has_list >FAILED tests/filters/test_html.py::TestHtml5AdvancedSelectors2::test_not_has_list >FAILED tests/filters/test_html.py::TestHtml5AdvancedSelectors2::test_not_has_list2 >FAILED tests/filters/test_html.py::TestHtml5AdvancedSelectors2::test_not_not >FAILED tests/filters/test_html.py::TestHTML5LIB::test_html5lib - AssertionErr... >FAILED tests/filters/test_html.py::TestXHTML::test_xhtml - AssertionError: Li... >FAILED tests/filters/test_html.py::TestHTMLChained::test_html_after_text - As... >FAILED tests/filters/test_javascript.py::TestJavaScript::test_javascript - As... >FAILED tests/filters/test_javascript.py::TestJavaScriptStrings::test_javascript_strings >FAILED tests/filters/test_javascript.py::TestJavaScriptStrings::test_javascript_temp_strings >FAILED tests/filters/test_javascript.py::TestJavaScriptGroupedComments::test_javascript_grouped_comments >FAILED tests/filters/test_javascript.py::TestJavaScriptChained::test_javascript_after_text >FAILED tests/filters/test_markdown.py::TestMarkdown::test_markdown - Assertio... >FAILED tests/filters/test_markdown.py::TestMarkdownChained::test_markdown_after_text >FAILED tests/filters/test_odf.py::TestODFFilter::test_fodt - AssertionError: ... >FAILED tests/filters/test_odf.py::TestODFFilter::test_fodt_chained - Assertio... >FAILED tests/filters/test_odf.py::TestODFFilter::test_odp - AssertionError: L... >FAILED tests/filters/test_odf.py::TestODFFilter::test_ods - AssertionError: L... >FAILED tests/filters/test_odf.py::TestODFFilter::test_odt - AssertionError: L... >FAILED tests/filters/test_odf.py::TestODFFilter::test_odt_chained - Assertion... >FAILED tests/filters/test_ooxml.py::TestOOOXMLFilter::test_docx - AssertionEr... >FAILED tests/filters/test_ooxml.py::TestOOOXMLFilter::test_docx_chained - Ass... >FAILED tests/filters/test_ooxml.py::TestOOOXMLFilter::test_pptx - AssertionEr... >FAILED tests/filters/test_ooxml.py::TestOOOXMLFilter::test_xlsx - AssertionEr... >FAILED tests/filters/test_python.py::TestPython::test_python - AssertionError... >FAILED tests/filters/test_python.py::TestPython::test_same_line - AssertionEr... >FAILED tests/filters/test_python.py::TestPythonStrings::test_python_bytes - A... >FAILED tests/filters/test_python.py::TestPythonStrings::test_python_continue >FAILED tests/filters/test_python.py::TestPythonStrings::test_python_format - ... >FAILED tests/filters/test_python.py::TestPythonStrings::test_python_raw - Ass... >FAILED tests/filters/test_python.py::TestPythonStrings::test_python_raw_bytes >FAILED tests/filters/test_python.py::TestPythonStrings::test_python_raw_format >FAILED tests/filters/test_python.py::TestPythonStrings::test_python_unicode >FAILED tests/filters/test_python.py::TestPythonStringAllow::test_exclude_bytes >FAILED tests/filters/test_python.py::TestPythonStringAllow::test_exclude_format >FAILED tests/filters/test_python.py::TestPythonStringAllow::test_exclude_raw >FAILED tests/filters/test_python.py::TestPythonStringAllow::test_exclude_unicode >FAILED tests/filters/test_python.py::TestPythonStringAllow::test_include_all >FAILED tests/filters/test_python.py::TestPythonStringAllow::test_include_all_raw >FAILED tests/filters/test_python.py::TestPythonStringAllow::test_include_all_unicode >FAILED tests/filters/test_python.py::TestPythonChained::test_python_after_text >FAILED tests/filters/test_stylesheets.py::TestStylesheetsCSS::test_stylesheets_css >FAILED tests/filters/test_stylesheets.py::TestStylesheetsSCSS::test_stylesheets_scss >FAILED tests/filters/test_stylesheets.py::TestStylesheetsSASS::test_stylesheets_sass >FAILED tests/filters/test_stylesheets.py::TestStylesheetsCSSChained::test_stylesheets_css_after_text >FAILED tests/filters/test_text.py::TestText::test_text - AssertionError: List... >FAILED tests/filters/test_text.py::TestText::test_text_utf16 - AssertionError... >FAILED tests/filters/test_text.py::TestText::test_text_utf32 - AssertionError... >FAILED tests/filters/test_text.py::TestTextChained::test_text_after_python - ... >FAILED tests/filters/test_url.py::TestURL::test_url - AssertionError: Lists d... >FAILED tests/filters/test_url.py::TestURLChained::test_url_after_text - Asser... >FAILED tests/filters/test_xml.py::TestXMLNamespaceNoDefault::test_xml_namespace_no_default >FAILED tests/filters/test_xml.py::TestXMLRoot::test_xml_namespace_no_default >FAILED tests/filters/test_xml.py::TestXMLNamespace::test_xml_namespace - Asse... >FAILED tests/flow_control/test_wildcard.py::TestWildcard::test_wildcard - Ass... >======================== 108 failed, 11 passed in 6.12s ======================== > * ERROR: dev-python/pyspelling-2.8.2::gentoo failed (test phase): > * pytest failed with python3.10 > * > * Call stack: > * ebuild.sh, line 136: Called src_test > * environment, line 3481: Called distutils-r1_src_test > * environment, line 1581: Called _distutils-r1_run_foreach_impl 'python_test' > * environment, line 682: Called python_foreach_impl 'distutils-r1_run_phase' 'python_test' > * environment, line 3109: Called multibuild_foreach_variant '_python_multibuild_wrapper' 'distutils-r1_run_phase' 'python_test' > * environment, line 2658: Called _multibuild_run '_python_multibuild_wrapper' 'distutils-r1_run_phase' 'python_test' > * environment, line 2656: Called _python_multibuild_wrapper 'distutils-r1_run_phase' 'python_test' > * environment, line 1015: Called distutils-r1_run_phase 'python_test' > * environment, line 1504: Called python_test > * environment, line 3402: Called distutils-r1_python_test > * environment, line 1454: Called epytest > * environment, line 2115: Called die > * The specific snippet of code: > * "${@}" || die -n "pytest failed with ${EPYTHON}"; > * > * If you need support, post the output of `emerge --info '=dev-python/pyspelling-2.8.2::gentoo'`, > * the complete build log and the output of `emerge -pqv '=dev-python/pyspelling-2.8.2::gentoo'`. > * The complete build log is located at '/var/tmp/portage/dev-python/pyspelling-2.8.2/temp/build.log'. > * The ebuild environment file is located at '/var/tmp/portage/dev-python/pyspelling-2.8.2/temp/environment'. > * Working directory: '/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2' > * S: '/var/tmp/portage/dev-python/pyspelling-2.8.2/work/pyspelling-2.8.2'
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 904297
: 860039