Skip to content

Commit

Permalink
Merge "Fix PatternPropertiesTestCase for py 3.6"
Browse files Browse the repository at this point in the history
  • Loading branch information
Zuul authored and openstack-gerrit committed Feb 20, 2018
2 parents e6a3603 + 3017531 commit 63c9484
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nova/tests/unit/test_api_validation.py
Expand Up @@ -465,7 +465,7 @@ def test_validate_patternProperties_fails(self):
# Note(jrosenboom): This is referencing an internal python error
# string, which is no stable interface. We need a patch in the
# jsonschema library in order to fix this properly.
if sys.version[:3] == '3.5':
if sys.version[:3] in ['3.5', '3.6']:
detail = "expected string or bytes-like object"
else:
detail = "expected string or buffer"
Expand Down

0 comments on commit 63c9484

Please sign in to comment.