Skip to content

Commit

Permalink
Fix test for change in ConfigurationError repr
Browse files Browse the repository at this point in the history
  • Loading branch information
davisagli committed Nov 6, 2018
1 parent 4421dc4 commit 5f46c5e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
2 changes: 2 additions & 0 deletions src/z3c/form/testing.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,8 @@
(re.compile("__builtin__"), r"builtins"),
(re.compile("<type"), r"<class"),
(re.compile("set\(\[(.*?)\]\)"), r"{\1}"),
(re.compile("^ConfigurationError"),
"zope.configuration.exceptions.ConfigurationError"),
)
)

Expand Down
9 changes: 4 additions & 5 deletions src/z3c/form/zcml.txt
Original file line number Diff line number Diff line change
Expand Up @@ -105,9 +105,8 @@ immediately:
... """ % unknownFile, context=context)
Traceback (most recent call last):
...
ZopeXMLConfigurationError: File "<string>", line 4.2-7.8
ConfigurationError: ('No such file', '...unknown.pt')

zope.configuration.exceptions.ConfigurationError: ('No such file', '...unknown.pt')
File "<string>", line 4.2-7.8

Object Widget template directive
--------------------------------
Expand Down Expand Up @@ -210,8 +209,8 @@ immediately:
... """ % unknownFile, context=context)
Traceback (most recent call last):
...
ZopeXMLConfigurationError: File "<string>", line 4.2-7.8
ConfigurationError: ('No such file', '...unknown.pt')
zope.configuration.exceptions.ConfigurationError: ('No such file', '...unknown.pt')
File "<string>", line 4.2-7.8


Register a specific template for a schema:
Expand Down

0 comments on commit 5f46c5e

Please sign in to comment.