Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed deprecation warning for ComponentLookupError. #32

Merged
merged 5 commits into from Aug 27, 2020

Conversation

mauritsvanrees
Copy link
Sponsor Member

No description provided.

@mister-roboto

This comment has been minimized.

@mauritsvanrees
Copy link
Sponsor Member Author

@jenkins-plone-org please run jobs

@coveralls
Copy link

Coverage Status

Coverage remained the same at 0.0% when pulling 4ec0584 on maurits/fix-warnings into 0abb395 on master.

@coveralls
Copy link

coveralls commented Aug 26, 2020

Coverage Status

Coverage remained the same at 0.0% when pulling f8f4dbc on maurits/fix-warnings into 0abb395 on master.

Traceback is slightly different than we expect on Plone 5.2:

```
File "/Users/maurits/community/plone-coredev/5.2/src/plone.tiles/plone/tiles/tests/../data.rst", line 112, in data.rst
Failed example:
    encode(data, IUnsupported) # doctest: +ELLIPSIS
Expected:
    Traceback (most recent call last):
    ...
    zope.interface.interfaces.ComponentLookupError: Cannot URL encode decimal of type <class 'zope.schema._field.Decimal'>
Got:
    Traceback (most recent call last):
      File "/Users/maurits/.pyenv/versions/2.7.17/lib/python2.7/doctest.py", line 1315, in __run
        compileflags, 1) in test.globs
      File "<doctest data.rst[24]>", line 1, in <module>
        encode(data, IUnsupported) # doctest: +ELLIPSIS
      File "/Users/maurits/community/plone-coredev/5.2/src/plone.tiles/plone/tiles/data.py", line 285, in encode
        field.__class__
    ComponentLookupError: Cannot URL encode decimal of type <class 'zope.schema._bootstrapfields.Decimal'>
```

But for other versions it may be the same as always, so make the test less strict.
@mauritsvanrees
Copy link
Sponsor Member Author

I improved the existing doctest output checker. We could drop 4.3 support here as well, but it's okay for now.

@jenkins-plone-org please run jobs

No longer test this on Travis.
The doctest output checking was getting a bit too crazy, and not working.
@mauritsvanrees
Copy link
Sponsor Member Author

I dropped 4.3 support.

Actually, this is not tested on Jenkins, so we don't need to run the tests there.
Travis passed.
I merge.

@mauritsvanrees mauritsvanrees merged commit d3f8274 into master Aug 27, 2020
@mauritsvanrees mauritsvanrees deleted the maurits/fix-warnings branch August 27, 2020 12:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants