nose.plugins.cover: ERROR: Coverage not available: unable to import coverage module Doctest: README.rst ... FAIL Failure: ModuleNotFoundError (No module named 'webtest') ... ERROR Doctest: attributes.rst ... ok Doctest: css.rst ... ok Doctest: manipulating.rst ... ok Doctest: pseudo_classes.rst ... ok Doctest: scrap.rst ... FAIL Failure: ModuleNotFoundError (No module named 'webtest') ... ERROR Doctest: tips.rst ... FAIL Failure: ModuleNotFoundError (No module named 'webtest') ... ERROR Doctest: traversing.rst ... ok Doctest: pyquery.cssselectpatch.JQueryTranslator.xpath_button_pseudo ... ok Doctest: pyquery.cssselectpatch.JQueryTranslator.xpath_checkbox_pseudo ... ok Doctest: pyquery.cssselectpatch.JQueryTranslator.xpath_checked_pseudo ... ok Doctest: pyquery.cssselectpatch.JQueryTranslator.xpath_contains_function ... ok Doctest: pyquery.cssselectpatch.JQueryTranslator.xpath_disabled_pseudo ... ok Doctest: pyquery.cssselectpatch.JQueryTranslator.xpath_empty_pseudo ... ok Doctest: pyquery.cssselectpatch.JQueryTranslator.xpath_enabled_pseudo ... ok Doctest: pyquery.cssselectpatch.JQueryTranslator.xpath_eq_function ... ok Doctest: pyquery.cssselectpatch.JQueryTranslator.xpath_even_pseudo ... ok Doctest: pyquery.cssselectpatch.JQueryTranslator.xpath_file_pseudo ... ok Doctest: pyquery.cssselectpatch.JQueryTranslator.xpath_first_pseudo ... ok Doctest: pyquery.cssselectpatch.JQueryTranslator.xpath_gt_function ... ok Doctest: pyquery.cssselectpatch.JQueryTranslator.xpath_has_function ... ok Doctest: pyquery.cssselectpatch.JQueryTranslator.xpath_header_pseudo ... ok Doctest: pyquery.cssselectpatch.JQueryTranslator.xpath_hidden_pseudo ... ok Doctest: pyquery.cssselectpatch.JQueryTranslator.xpath_image_pseudo ... ok Doctest: pyquery.cssselectpatch.JQueryTranslator.xpath_input_pseudo ... ok Doctest: pyquery.cssselectpatch.JQueryTranslator.xpath_last_pseudo ... ok Doctest: pyquery.cssselectpatch.JQueryTranslator.xpath_lt_function ... ok Doctest: pyquery.cssselectpatch.JQueryTranslator.xpath_odd_pseudo ... ok Doctest: pyquery.cssselectpatch.JQueryTranslator.xpath_parent_pseudo ... ok Doctest: pyquery.cssselectpatch.JQueryTranslator.xpath_password_pseudo ... ok Doctest: pyquery.cssselectpatch.JQueryTranslator.xpath_radio_pseudo ... ok Doctest: pyquery.cssselectpatch.JQueryTranslator.xpath_reset_pseudo ... ok Doctest: pyquery.cssselectpatch.JQueryTranslator.xpath_selected_pseudo ... ok Doctest: pyquery.cssselectpatch.JQueryTranslator.xpath_submit_pseudo ... ok Doctest: pyquery.cssselectpatch.JQueryTranslator.xpath_text_pseudo ... ok Doctest: pyquery.pyquery.PyQuery.Fn ... ok Doctest: pyquery.pyquery.PyQuery.__html__ ... ok Doctest: pyquery.pyquery.PyQuery.__str__ ... ok Doctest: pyquery.pyquery.PyQuery.add_class ... ok Doctest: pyquery.pyquery.PyQuery.children ... ok Doctest: pyquery.pyquery.PyQuery.closest ... ok Doctest: pyquery.pyquery.PyQuery.contents ... ok Doctest: pyquery.pyquery.PyQuery.end ... ok Doctest: pyquery.pyquery.PyQuery.eq ... ok Doctest: pyquery.pyquery.PyQuery.filter ... ok Doctest: pyquery.pyquery.PyQuery.find ... ok Doctest: pyquery.pyquery.PyQuery.has_class ... ok Doctest: pyquery.pyquery.PyQuery.hide ... ok Doctest: pyquery.pyquery.PyQuery.html ... ok Doctest: pyquery.pyquery.PyQuery.is_ ... ok Doctest: pyquery.pyquery.PyQuery.items ... ok Doctest: pyquery.pyquery.PyQuery.map ... ok Doctest: pyquery.pyquery.PyQuery.next_all ... ok Doctest: pyquery.pyquery.PyQuery.not_ ... ok Doctest: pyquery.pyquery.PyQuery.outer_html ... ok Doctest: pyquery.pyquery.PyQuery.parents ... ok Doctest: pyquery.pyquery.PyQuery.prev_all ... ok Doctest: pyquery.pyquery.PyQuery.remove ... ok Doctest: pyquery.pyquery.PyQuery.remove_attr ... ok Doctest: pyquery.pyquery.PyQuery.remove_class ... ok Doctest: pyquery.pyquery.PyQuery.remove_namespaces ... ok Doctest: pyquery.pyquery.PyQuery.replace_with ... ok Doctest: pyquery.pyquery.PyQuery.serialize ... ok Doctest: pyquery.pyquery.PyQuery.serialize_array ... ok Doctest: pyquery.pyquery.PyQuery.serialize_dict ... ok Doctest: pyquery.pyquery.PyQuery.serialize_pairs ... ok Doctest: pyquery.pyquery.PyQuery.show ... ok Doctest: pyquery.pyquery.PyQuery.siblings ... ok Doctest: pyquery.pyquery.PyQuery.text ... ok Doctest: pyquery.pyquery.PyQuery.toggle_class ... ok Doctest: pyquery.pyquery.PyQuery.val ... ok Doctest: pyquery.pyquery.PyQuery.wrap ... ok Doctest: pyquery.pyquery.PyQuery.wrap_all ... ok Doctest: pyquery.pyquery.PyQuery.xhtml_to_html ... ok Failure: ModuleNotFoundError (No module named 'webob') ... ERROR Doctest: doctests.rst ... ok test_block_tags (tests.test_browser.TestInnerText) ... ok test_inline_tags (tests.test_browser.TestInnerText) ... ok test_separators (tests.test_browser.TestInnerText) ... ok test_strip (tests.test_browser.TestInnerText) ... ok test_ul_li (tests.test_browser.TestInnerText) ... ok Failure: ModuleNotFoundError (No module named 'webtest') ... ERROR ====================================================================== ERROR: Failure: ModuleNotFoundError (No module named 'webtest') ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python3.10/site-packages/nose/failure.py", line 39, in runTest raise self.exc_val.with_traceback(self.tb) File "/usr/lib/python3.10/site-packages/nose/loader.py", line 416, in loadTestsFromName module = self.importer.importFromPath( File "/usr/lib/python3.10/site-packages/nose/importer.py", line 47, in importFromPath return self.importFromDir(dir_path, fqname) File "/usr/lib/python3.10/site-packages/nose/importer.py", line 94, in importFromDir mod = load_module(part_fqname, fh, filename, desc) File "/usr/lib/python3.10/imp.py", line 235, in load_module return load_source(name, filename, file) File "/usr/lib/python3.10/imp.py", line 172, in load_source module = _load(spec) File "", line 719, in _load File "", line 688, in _load_unlocked File "", line 883, in exec_module File "", line 241, in _call_with_frames_removed File "/build/python-pyquery/src/pyquery-1.4.3/README_fixt.py", line 3, in from webtest import http ModuleNotFoundError: No module named 'webtest' ====================================================================== ERROR: Failure: ModuleNotFoundError (No module named 'webtest') ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python3.10/site-packages/nose/failure.py", line 39, in runTest raise self.exc_val.with_traceback(self.tb) File "/usr/lib/python3.10/site-packages/nose/loader.py", line 416, in loadTestsFromName module = self.importer.importFromPath( File "/usr/lib/python3.10/site-packages/nose/importer.py", line 47, in importFromPath return self.importFromDir(dir_path, fqname) File "/usr/lib/python3.10/site-packages/nose/importer.py", line 94, in importFromDir mod = load_module(part_fqname, fh, filename, desc) File "/usr/lib/python3.10/imp.py", line 235, in load_module return load_source(name, filename, file) File "/usr/lib/python3.10/imp.py", line 172, in load_source module = _load(spec) File "", line 719, in _load File "", line 688, in _load_unlocked File "", line 883, in exec_module File "", line 241, in _call_with_frames_removed File "/build/python-pyquery/src/pyquery-1.4.3/docs/scrap_fixt.py", line 5, in from webtest import http ModuleNotFoundError: No module named 'webtest' ====================================================================== ERROR: Failure: ModuleNotFoundError (No module named 'webtest') ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python3.10/site-packages/nose/failure.py", line 39, in runTest raise self.exc_val.with_traceback(self.tb) File "/usr/lib/python3.10/site-packages/nose/loader.py", line 416, in loadTestsFromName module = self.importer.importFromPath( File "/usr/lib/python3.10/site-packages/nose/importer.py", line 47, in importFromPath return self.importFromDir(dir_path, fqname) File "/usr/lib/python3.10/site-packages/nose/importer.py", line 94, in importFromDir mod = load_module(part_fqname, fh, filename, desc) File "/usr/lib/python3.10/imp.py", line 235, in load_module return load_source(name, filename, file) File "/usr/lib/python3.10/imp.py", line 172, in load_source module = _load(spec) File "", line 719, in _load File "", line 688, in _load_unlocked File "", line 883, in exec_module File "", line 241, in _call_with_frames_removed File "/build/python-pyquery/src/pyquery-1.4.3/docs/tips_fixt.py", line 3, in from webtest import http ModuleNotFoundError: No module named 'webtest' ====================================================================== ERROR: Failure: ModuleNotFoundError (No module named 'webob') ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python3.10/site-packages/nose/failure.py", line 39, in runTest raise self.exc_val.with_traceback(self.tb) File "/usr/lib/python3.10/site-packages/nose/loader.py", line 416, in loadTestsFromName module = self.importer.importFromPath( File "/usr/lib/python3.10/site-packages/nose/importer.py", line 47, in importFromPath return self.importFromDir(dir_path, fqname) File "/usr/lib/python3.10/site-packages/nose/importer.py", line 94, in importFromDir mod = load_module(part_fqname, fh, filename, desc) File "/usr/lib/python3.10/imp.py", line 235, in load_module return load_source(name, filename, file) File "/usr/lib/python3.10/imp.py", line 172, in load_source module = _load(spec) File "", line 719, in _load File "", line 688, in _load_unlocked File "", line 883, in exec_module File "", line 241, in _call_with_frames_removed File "/build/python-pyquery/src/pyquery-1.4.3/tests/apps.py", line 2, in from webob import Request ModuleNotFoundError: No module named 'webob' ====================================================================== ERROR: Failure: ModuleNotFoundError (No module named 'webtest') ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python3.10/site-packages/nose/failure.py", line 39, in runTest raise self.exc_val.with_traceback(self.tb) File "/usr/lib/python3.10/site-packages/nose/loader.py", line 416, in loadTestsFromName module = self.importer.importFromPath( File "/usr/lib/python3.10/site-packages/nose/importer.py", line 47, in importFromPath return self.importFromDir(dir_path, fqname) File "/usr/lib/python3.10/site-packages/nose/importer.py", line 94, in importFromDir mod = load_module(part_fqname, fh, filename, desc) File "/usr/lib/python3.10/imp.py", line 235, in load_module return load_source(name, filename, file) File "/usr/lib/python3.10/imp.py", line 172, in load_source module = _load(spec) File "", line 719, in _load File "", line 688, in _load_unlocked File "", line 883, in exec_module File "", line 241, in _call_with_frames_removed File "/build/python-pyquery/src/pyquery-1.4.3/tests/test_pyquery.py", line 10, in from webtest import http ModuleNotFoundError: No module named 'webtest' ====================================================================== FAIL: Doctest: README.rst ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python3.10/doctest.py", line 2214, in runTest raise self.failureException(self.format_failure(new.getvalue())) AssertionError: Failed doctest test for README.rst File "/build/python-pyquery/src/pyquery-1.4.3/README.rst", line 0 ---------------------------------------------------------------------- File "/build/python-pyquery/src/pyquery-1.4.3/README.rst", line 48, in README.rst Failed example: d = pq(url=your_url) Exception raised: Traceback (most recent call last): File "/usr/lib/python3.10/doctest.py", line 1346, in __run exec(compile(example.source, filename, "single", File "", line 1, in d = pq(url=your_url) NameError: name 'your_url' is not defined ---------------------------------------------------------------------- File "/build/python-pyquery/src/pyquery-1.4.3/README.rst", line 49, in README.rst Failed example: d = pq(url=your_url, opener=lambda url, **kw: urlopen(url).read()) Exception raised: Traceback (most recent call last): File "/usr/lib/python3.10/doctest.py", line 1346, in __run exec(compile(example.source, filename, "single", File "", line 1, in d = pq(url=your_url, NameError: name 'your_url' is not defined ---------------------------------------------------------------------- File "/build/python-pyquery/src/pyquery-1.4.3/README.rst", line 51, in README.rst Failed example: d = pq(filename=path_to_html_file) Exception raised: Traceback (most recent call last): File "/usr/lib/python3.10/doctest.py", line 1346, in __run exec(compile(example.source, filename, "single", File "", line 1, in d = pq(filename=path_to_html_file) NameError: name 'path_to_html_file' is not defined ---------------------------------------------------------------------- File "/build/python-pyquery/src/pyquery-1.4.3/README.rst", line 55, in README.rst Failed example: d("#hello") Expected: [] Got: [] ---------------------------------------------------------------------- File "/build/python-pyquery/src/pyquery-1.4.3/README.rst", line 58, in README.rst Failed example: print(p.html()) Expected: Hello world ! Got: None ---------------------------------------------------------------------- File "/build/python-pyquery/src/pyquery-1.4.3/README.rst", line 60, in README.rst Failed example: p.html("you know Python rocks") Expected: [] Got: [] ---------------------------------------------------------------------- File "/build/python-pyquery/src/pyquery-1.4.3/README.rst", line 62, in README.rst Failed example: print(p.html()) Expected: you know Python rocks Got: None ---------------------------------------------------------------------- File "/build/python-pyquery/src/pyquery-1.4.3/README.rst", line 64, in README.rst Failed example: print(p.text()) Expected: you know Python rocks Got: ---------------------------------------------------------------------- File "/build/python-pyquery/src/pyquery-1.4.3/README.rst", line 71, in README.rst Failed example: d('p:first') Expected: [] Got: [] >> raise self.failureException(self.format_failure(<_io.StringIO object at 0x400302dd80>.getvalue())) ====================================================================== FAIL: Doctest: scrap.rst ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python3.10/doctest.py", line 2214, in runTest raise self.failureException(self.format_failure(new.getvalue())) AssertionError: Failed doctest test for scrap.rst File "/build/python-pyquery/src/pyquery-1.4.3/docs/scrap.rst", line 0 ---------------------------------------------------------------------- File "/build/python-pyquery/src/pyquery-1.4.3/docs/scrap.rst", line 9, in scrap.rst Failed example: pq(your_url) Exception raised: Traceback (most recent call last): File "/usr/lib/python3.10/doctest.py", line 1346, in __run exec(compile(example.source, filename, "single", File "", line 1, in pq(your_url) NameError: name 'your_url' is not defined ---------------------------------------------------------------------- File "/build/python-pyquery/src/pyquery-1.4.3/docs/scrap.rst", line 16, in scrap.rst Failed example: pq(your_url, headers={'user-agent': 'pyquery'}) Exception raised: Traceback (most recent call last): File "/usr/lib/python3.10/doctest.py", line 1346, in __run exec(compile(example.source, filename, "single", File "", line 1, in pq(your_url, headers={'user-agent': 'pyquery'}) NameError: name 'your_url' is not defined ---------------------------------------------------------------------- File "/build/python-pyquery/src/pyquery-1.4.3/docs/scrap.rst", line 19, in scrap.rst Failed example: pq(your_url, {'q': 'foo'}, method='post', verify=True) Exception raised: Traceback (most recent call last): File "/usr/lib/python3.10/doctest.py", line 1346, in __run exec(compile(example.source, filename, "single", File "", line 1, in pq(your_url, {'q': 'foo'}, method='post', verify=True) NameError: name 'your_url' is not defined >> raise self.failureException(self.format_failure(<_io.StringIO object at 0x4005941ab0>.getvalue())) ====================================================================== FAIL: Doctest: tips.rst ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python3.10/doctest.py", line 2214, in runTest raise self.failureException(self.format_failure(new.getvalue())) AssertionError: Failed doctest test for tips.rst File "/build/python-pyquery/src/pyquery-1.4.3/docs/tips.rst", line 0 ---------------------------------------------------------------------- File "/build/python-pyquery/src/pyquery-1.4.3/docs/tips.rst", line 12, in tips.rst Failed example: d = pq(url=your_url, parser='html') Exception raised: Traceback (most recent call last): File "/usr/lib/python3.10/doctest.py", line 1346, in __run exec(compile(example.source, filename, "single", File "", line 1, in d = pq(url=your_url, parser='html') NameError: name 'your_url' is not defined ---------------------------------------------------------------------- File "/build/python-pyquery/src/pyquery-1.4.3/docs/tips.rst", line 13, in tips.rst Failed example: d('form').attr('action') Exception raised: Traceback (most recent call last): File "/usr/lib/python3.10/doctest.py", line 1346, in __run exec(compile(example.source, filename, "single", File "", line 1, in d('form').attr('action') NameError: name 'd' is not defined ---------------------------------------------------------------------- File "/build/python-pyquery/src/pyquery-1.4.3/docs/tips.rst", line 15, in tips.rst Failed example: d.make_links_absolute() Exception raised: Traceback (most recent call last): File "/usr/lib/python3.10/doctest.py", line 1346, in __run exec(compile(example.source, filename, "single", File "", line 1, in d.make_links_absolute() NameError: name 'd' is not defined >> raise self.failureException(self.format_failure(<_io.StringIO object at 0x4005943ac0>.getvalue())) ---------------------------------------------------------------------- Ran 85 tests in 1.645s FAILED (errors=5, failures=3) ==> ERROR: A failure occurred in check().  Aborting...