Skip to content

Test fail with pytest5 release due to syntax change #158

Closed
@scarabeusiv

Description

@scarabeusiv
[   12s] =================================== FAILURES ===================================
[   12s] _____________ TestSchemaUnmarshal.test_string_format_invalid_value _____________
[   12s] 
[   12s] self = <test_schemas.TestSchemaUnmarshal object at 0x7fbd89b5e2e8>
[   12s] 
[   12s]     def test_string_format_invalid_value(self):
[   12s]         custom_format = 'custom'
[   12s]         schema = Schema('string', schema_format=custom_format)
[   12s]         value = 'x'
[   12s]     
[   12s]         with pytest.raises(
[   12s] >           InvalidSchemaValue, message='Failed to format value'
[   12s]         ):
[   12s] E       TypeError: Unexpected keyword arguments passed to pytest.raises: message
[   12s] E       Use context-manager form instead?
[   12s] 
[   12s] tests/unit/schema/test_schemas.py:171: TypeError
[   12s] =================== 1 failed, 288 passed, 1 xpassed in 0.91s ===================

As you have hardcoded pytest version on travis it is not exhibited there.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      pFad - Phonifier reborn

      Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

      Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


      Alternative Proxies:

      Alternative Proxy

      pFad Proxy

      pFad v3 Proxy

      pFad v4 Proxy