Merge lp:~cjwatson/lazr.restful/zope.interface-5.0.0 into lp:lazr.restful

Proposed by Colin Watson
Status: Merged
Merged at revision: 245
Proposed branch: lp:~cjwatson/lazr.restful/zope.interface-5.0.0
Merge into: lp:lazr.restful
Diff against target: 28 lines (+6/-1)
2 files modified
NEWS.rst (+5/-0)
src/lazr/restful/docs/webservice-declarations.rst (+1/-1)
To merge this branch: bzr merge lp:~cjwatson/lazr.restful/zope.interface-5.0.0
Reviewer Review Type Date Requested Status
Ioana Lasc (community) Approve
Review via email: mp+386571@code.launchpad.net

Commit message

Fix test failure with zope.interface >= 5.0.0.

Description of the change

Attribute now has a useful __str__, so we need to explicitly ask for its repr when that's what we're testing.

To post a comment you must log in.
Revision history for this message
Ioana Lasc (ilasc) :
review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'NEWS.rst'
--- NEWS.rst 2020-06-12 08:43:17 +0000
+++ NEWS.rst 2020-06-30 13:35:26 +0000
@@ -2,6 +2,11 @@
2NEWS for lazr.restful2NEWS for lazr.restful
3=====================3=====================
44
50.22.1
6======
7
8Fix test failure with zope.interface >= 5.0.0.
9
50.22.0 (2020-06-12)100.22.0 (2020-06-12)
6===================11===================
712
813
=== modified file 'src/lazr/restful/docs/webservice-declarations.rst'
--- src/lazr/restful/docs/webservice-declarations.rst 2020-02-04 21:53:16 +0000
+++ src/lazr/restful/docs/webservice-declarations.rst 2020-06-30 13:35:26 +0000
@@ -2286,7 +2286,7 @@
2286 1.02286 1.0
2287 >>> print(attrs['type'])2287 >>> print(attrs['type'])
2288 read_operation2288 read_operation
2289 >>> print(attrs['params']['arg'])2289 >>> print(repr(attrs['params']['arg']))
2290 <zope.schema._field.Float object...>2290 <zope.schema._field.Float object...>
22912291
2292But it's not present in the unnamed pre-1.0 version, since it hadn't2292But it's not present in the unnamed pre-1.0 version, since it hadn't

Subscribers

People subscribed via source and target branches