Roy H. Han, Paste Users
i don't have 2.6 to test, but I think trunk r8015 should fix it (I now try
to import urlparse.parse_sql).
On Tue, Jul 7, 2009 at 1:00 AM, Sergey Schetinin <maluke@???> wrote:
>
> Fixed: http://paste.groovie.org/pythonpaste/changeset/8014
>
> The tests though..., how are they supposed to be run? This time
> `setup.py test` gave me this:
>
> running test
> running egg_info
> unrecognized .svn/entries format; skipping .
> writing WebOb.egg-info\PKG-INFO
> writing top-level names to WebOb.egg-info\top_level.txt
> writing dependency_links to WebOb.egg-info\dependency_links.txt
> unrecognized .svn/entries format in
> reading manifest file 'WebOb.egg-info\SOURCES.txt'
> writing manifest file 'WebOb.egg-info\SOURCES.txt'
> running build_ext
> C:\python26\lib\site-packages\nose-0.11.1-py2.6.egg\nose\config.py:232:
> RuntimeWarning: Option 'with-doctest' in config
> file 'setup.cfg' ignored: excluded by runtime environment
> warn(msg, RuntimeWarning)
> C:\python26\lib\site-packages\nose-0.11.1-py2.6.egg\nose\config.py:232:
> RuntimeWarning: Option 'doctest-extension' in co
> nfig file 'setup.cfg' ignored: excluded by runtime environment
> warn(msg, RuntimeWarning)
> tests.test_request.test_gets ... ok
> tests.test_request.test_language_parsing ... ok
> tests.test_request.test_mime_parsing ... ok
> tests.test_request.test_accept_best_match ... ok
> tests.test_request.test_from_mimeparse ... ok
> tests.test_request.test_headers ... ok
> tests.test_request.test_bad_cookie ... ok
> tests.test_request.test_params ... ok
> tests.test_request.test_copy ... ok
> tests.test_response.test_response ... ok
> tests.test_response.test_HEAD_closes ... ok
>
> ----------------------------------------------------------------------
> Ran 11 tests in 0.203s
>
> OK
>
> Doctests aren't run at all apparently.
>
>
> `sh test` doesnt work properly either:
>
> [.....]
> ----------------------------------------------------------------------
> File "C:\Files\Checkouts\WebOb\tests\test_response.txt", line 178, in
> test_response.txt
> Failed example:
> req.get_response(res)
> Expected:
> <Response ... 200 OK>
> Got:
> <Response at 0x1267270 200 OK>
>
> >> raise self.failureException(self.format_failure(<StringIO.StringIO
> instance at 0x01266490>.getvalue()))
>
>
> ----------------------------------------------------------------------
> Ran 12 tests in 0.531s
>
> FAILED (errors=2, failures=6)
>
> Errors seem to be due to ELLIPSIS not getting picked up. Doing the
> test collection and running implicitly is and always was a bad idea,
> and surely unittest / doctest APIs suck, but test runner scripts,
> configuration files and more and more inversion of control doesn't
> look like a real solution at all. Oh well.
>
>
> 2009/6/26 Roy H. Han <starsareblueandfaraway@???>:
> >
> > Hi,
> >
> > I'm getting the following error in Python 2.6 when trying to load a
> > page with GET arguments.
> >
> >>> PendingDeprecationWarning: cgi.parse_qsl is deprecated, use
> urlparse.parse_qsl instead
> >
> > I think this is the offending line.
> >
> > http://pythonpaste.org/webob/webob/__init__.py.html
> > 0931 vars = MultiDict(cgi.parse_qsl(
> > 0932 source, keep_blank_values=True,
> > 0933 strict_parsing=False))
>
> That page seems to be quite out of date too.
>
>
> --
> Best Regards,
> Sergey Schetinin
>
> http://s3bk.com/ -- S3 Backup
> http://word-to-html.com/ -- Word to HTML Converter
>
> >
>
--
Ian Bicking | http://blog.ianbicking.org |
http://topplabs.org/civichacker
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Paste Users" group.
To post to this group, send email to paste-users@???
To unsubscribe from this group, send email to paste-users+unsubscribe@???
For more options, visit this group at
http://groups.google.com/group/paste-users?hl=en
-~----------~----~----~----~------~----~------~--~---