← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1750355] [NEW] nova.tests.unit.test_api_validation.PatternPropertiesTestCase.test_validate_patternProperties_fails fails in 3.6 because py3 check is limited to 3.5

 

Public bug reported:


nova.tests.unit.test_api_validation.PatternPropertiesTestCase.test_validate_patternProperties_fails fails in 3.6 because py3 check is limited to 3.5 with:

```
Captured traceback:
~~~~~~~~~~~~~~~~~~~
    b'Traceback (most recent call last):'
    b'  File "/Users/cdent/src/nova/nova/api/validation/validators.py", line 300, in validate'
    b'    self.validator.validate(*args, **kwargs)'
    b'  File "/Users/cdent/src/nova/.tox/py36/lib/python3.6/site-packages/jsonschema/validators.py", line 129, in validate'
    b'    for error in self.iter_errors(*args, **kwargs):'
    b'  File "/Users/cdent/src/nova/.tox/py36/lib/python3.6/site-packages/jsonschema/validators.py", line 105, in iter_errors'
    b'    for error in errors:'
    b'  File "/Users/cdent/src/nova/.tox/py36/lib/python3.6/site-packages/jsonschema/_validators.py", line 14, in patternProperties'
    b'    if re.search(pattern, k):'
    b'  File "/Users/cdent/src/nova/.tox/py36/lib/python3.6/re.py", line 182, in search'
    b'    return _compile(pattern, flags).search(string)'
    b'TypeError: expected string or bytes-like object'
```

** Affects: nova
     Importance: Undecided
     Assignee: Chris Dent (cdent)
         Status: In Progress


** Tags: low-hanging-fruit testing

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Compute (nova).
https://bugs.launchpad.net/bugs/1750355

Title:
  nova.tests.unit.test_api_validation.PatternPropertiesTestCase.test_validate_patternProperties_fails
  fails in 3.6 because py3 check is limited to 3.5

Status in OpenStack Compute (nova):
  In Progress

Bug description:
  
  nova.tests.unit.test_api_validation.PatternPropertiesTestCase.test_validate_patternProperties_fails fails in 3.6 because py3 check is limited to 3.5 with:

  ```
  Captured traceback:
  ~~~~~~~~~~~~~~~~~~~
      b'Traceback (most recent call last):'
      b'  File "/Users/cdent/src/nova/nova/api/validation/validators.py", line 300, in validate'
      b'    self.validator.validate(*args, **kwargs)'
      b'  File "/Users/cdent/src/nova/.tox/py36/lib/python3.6/site-packages/jsonschema/validators.py", line 129, in validate'
      b'    for error in self.iter_errors(*args, **kwargs):'
      b'  File "/Users/cdent/src/nova/.tox/py36/lib/python3.6/site-packages/jsonschema/validators.py", line 105, in iter_errors'
      b'    for error in errors:'
      b'  File "/Users/cdent/src/nova/.tox/py36/lib/python3.6/site-packages/jsonschema/_validators.py", line 14, in patternProperties'
      b'    if re.search(pattern, k):'
      b'  File "/Users/cdent/src/nova/.tox/py36/lib/python3.6/re.py", line 182, in search'
      b'    return _compile(pattern, flags).search(string)'
      b'TypeError: expected string or bytes-like object'
  ```

To manage notifications about this bug go to:
https://bugs.launchpad.net/nova/+bug/1750355/+subscriptions


Follow ups