webtest-*.ebuild: Add lxml to DEPEND[test] dev-python/webtest
authorW. Trevor King <wking@tremily.us>
Wed, 8 Oct 2014 15:28:17 +0000 (08:28 -0700)
committerW. Trevor King <wking@tremily.us>
Wed, 8 Oct 2014 16:13:38 +0000 (09:13 -0700)
Avoid:

  File "/var/tmp/portage/dev-python/webtest-1.4.3-r1/work/WebTest-1.4.3/docs/index.txt", line 320, in index.txt
  Failed example:
      res.lxml
  Exception raised:
      Traceback (most recent call last):
        File "/var/tmp/portage/dev-python/webtest-1.4.3-r1/work/WebTest-1.4.3/webtest/app.py", line 568, in lxml
          from lxml import etree
      ImportError: No module named 'lxml'

      During handling of the above exception, another exception occurred:

      Traceback (most recent call last):
        File "/usr/lib64/python3.3/doctest.py", line 1313, in __run
          compileflags, 1), test.globs)
        File "<doctest index.txt[22]>", line 1, in <module>
          res.lxml
        File "/var/tmp/portage/dev-python/webtest-1.4.3-r1/work/WebTest-1.4.3/webtest/app.py", line 571, in lxml
          "You must have lxml installed to use response.lxml")
      ImportError: You must have lxml installed to use response.lxml

and:

  File "/var/tmp/portage/dev-python/webtest-2.0.11/work/WebTest-2.0.11-python3_3/docs/testresponse.txt", line 124, in testresponse.txt
  Failed example:
      res.lxml
  Exception raised:
      Traceback (most recent call last):
        File "/var/tmp/portage/dev-python/webtest-2.0.11/work/WebTest-2.0.11-python3_3/webtest/response.py", line 477, in lxml
          from lxml import etree
      ImportError: No module named 'lxml'

      During handling of the above exception, another exception occurred:

      Traceback (most recent call last):
        File "/usr/lib64/python3.3/doctest.py", line 1313, in __run
          compileflags, 1), test.globs)
        File "<doctest testresponse.txt[8]>", line 1, in <module>
          res.lxml
        File "/var/tmp/portage/dev-python/webtest-2.0.11/work/WebTest-2.0.11-python3_3/webtest/response.py", line 480, in lxml
          "You must have lxml installed to use response.lxml")
      ImportError: You must have lxml installed to use response.lxml

webtest-1.4.3-r1.ebuild
webtest-2.0.11.ebuild

index 0799644801144a34b557da5902c7b52bd1f2655c..235eb0c60f0be2c7e350cc780010a272b5aef69a 100644 (file)
@@ -26,7 +26,9 @@ DEPEND="${RDEPEND}
        app-arch/unzip
        dev-python/setuptools[${PYTHON_USEDEP}]
        doc? ( dev-python/sphinx[${PYTHON_USEDEP}] )
-       test? ( dev-python/nose[${PYTHON_USEDEP}]
+       test? (
+               dev-python/lxml[${PYTHON_USEDEP}]
+               dev-python/nose[${PYTHON_USEDEP}]
                dev-python/pyquery[${PYTHON_USEDEP}]
                virtual/python-unittest2[${PYTHON_USEDEP}] )"
 
index 69bdc53c990f2de1d0e54717b54d8c0a2b49302f..6387ebb5c73bd9db8b9f3af584c64caf907ff0b5 100644 (file)
@@ -31,7 +31,9 @@ DEPEND="${RDEPEND}
        app-arch/unzip
        dev-python/setuptools[${PYTHON_USEDEP}]
        doc? ( dev-python/sphinx[${PYTHON_USEDEP}] )
-       test? ( dev-python/nose[${PYTHON_USEDEP}]
+       test? (
+               dev-python/lxml[${PYTHON_USEDEP}]
+               dev-python/nose[${PYTHON_USEDEP}]
                dev-python/pyquery[${PYTHON_USEDEP}]
                dev-python/pastedeploy[${PYTHON_USEDEP}]
                dev-python/wsgiproxy2[${PYTHON_USEDEP}]