Skip to content

bump flask dependency to include 3.0 #292

bump flask dependency to include 3.0

bump flask dependency to include 3.0 #292

GitHub Actions / JUnit Report python3.12 marshmallow==3.17.* flask=='2.2.*' werkzeug=='2.2.*' failed Oct 27, 2023 in 0s

130 tests run, 69 passed, 0 skipped, 61 failed.

Annotations

Check failure on line 1 in TestErrors

See this annotation in the file changed.

@github-actions github-actions / JUnit Report python3.12 marshmallow==3.17.* flask=='2.2.*' werkzeug=='2.2.*'

TestErrors.test_custom_http_errors_are_handled

DeprecationWarning: ast.Str is deprecated and will be removed in Python 3.14; use ast.Constant instead
Raw output
self = <tests.test_errors.TestErrors testMethod=test_custom_http_errors_are_handled>

    def setUp(self):
>       self.app = self.create_app()

tests/test_errors.py:32: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
tests/test_errors.py:36: in create_app
    app = Flask(__name__)
/opt/hostedtoolcache/Python/3.12.0/x64/lib/python3.12/site-packages/flask/app.py:709: in __init__
    self.add_url_rule(
/opt/hostedtoolcache/Python/3.12.0/x64/lib/python3.12/site-packages/flask/scaffold.py:50: in wrapper_func
    return f(self, *args, **kwargs)
/opt/hostedtoolcache/Python/3.12.0/x64/lib/python3.12/site-packages/flask/app.py:1357: in add_url_rule
    self.url_map.add(rule)
/opt/hostedtoolcache/Python/3.12.0/x64/lib/python3.12/site-packages/werkzeug/routing/map.py:174: in add
    rule.bind(self)
/opt/hostedtoolcache/Python/3.12.0/x64/lib/python3.12/site-packages/werkzeug/routing/rules.py:560: in bind
    self.compile()
/opt/hostedtoolcache/Python/3.12.0/x64/lib/python3.12/site-packages/werkzeug/routing/rules.py:705: in compile
    self._build = self._compile_builder(False).__get__(self, None)
/opt/hostedtoolcache/Python/3.12.0/x64/lib/python3.12/site-packages/werkzeug/routing/rules.py:761: in _compile_builder
    dom_parts = _parts(dom_ops)
/opt/hostedtoolcache/Python/3.12.0/x64/lib/python3.12/site-packages/werkzeug/routing/rules.py:751: in _parts
    parts = parts or [ast.Str("")]
/opt/hostedtoolcache/Python/3.12.0/x64/lib/python3.12/ast.py:1797: in __getattr__
    warnings._deprecated(
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

name = 'ast.Str'
message = '{name} is deprecated and will be removed in Python {remove}; use ast.Constant instead'

    def _deprecated(name, message=_DEPRECATED_MSG, *, remove, _version=sys.version_info):
        """Warn that *name* is deprecated or should be removed.
    
        RuntimeError is raised if *remove* specifies a major/minor tuple older than
        the current Python version or the same version but past the alpha.
    
        The *message* argument is formatted with *name* and *remove* as a Python
        version (e.g. "3.11").
    
        """
        remove_formatted = f"{remove[0]}.{remove[1]}"
        if (_version[:2] > remove) or (_version[:2] == remove and _version[3] != "alpha"):
            msg = f"{name!r} was slated for removal after Python {remove_formatted} alpha"
            raise RuntimeError(msg)
        else:
            msg = message.format(name=name, remove=remove_formatted)
>           warn(msg, DeprecationWarning, stacklevel=3)
E           DeprecationWarning: ast.Str is deprecated and will be removed in Python 3.14; use ast.Constant instead

/opt/hostedtoolcache/Python/3.12.0/x64/lib/python3.12/warnings.py:529: DeprecationWarning

Check failure on line 1 in TestErrors

See this annotation in the file changed.

@github-actions github-actions / JUnit Report python3.12 marshmallow==3.17.* flask=='2.2.*' werkzeug=='2.2.*'

TestErrors.test_custom_http_errors_can_have_additional_data

DeprecationWarning: ast.Str is deprecated and will be removed in Python 3.14; use ast.Constant instead
Raw output
self = <tests.test_errors.TestErrors testMethod=test_custom_http_errors_can_have_additional_data>

    def setUp(self):
>       self.app = self.create_app()

tests/test_errors.py:32: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
tests/test_errors.py:36: in create_app
    app = Flask(__name__)
/opt/hostedtoolcache/Python/3.12.0/x64/lib/python3.12/site-packages/flask/app.py:709: in __init__
    self.add_url_rule(
/opt/hostedtoolcache/Python/3.12.0/x64/lib/python3.12/site-packages/flask/scaffold.py:50: in wrapper_func
    return f(self, *args, **kwargs)
/opt/hostedtoolcache/Python/3.12.0/x64/lib/python3.12/site-packages/flask/app.py:1357: in add_url_rule
    self.url_map.add(rule)
/opt/hostedtoolcache/Python/3.12.0/x64/lib/python3.12/site-packages/werkzeug/routing/map.py:174: in add
    rule.bind(self)
/opt/hostedtoolcache/Python/3.12.0/x64/lib/python3.12/site-packages/werkzeug/routing/rules.py:560: in bind
    self.compile()
/opt/hostedtoolcache/Python/3.12.0/x64/lib/python3.12/site-packages/werkzeug/routing/rules.py:705: in compile
    self._build = self._compile_builder(False).__get__(self, None)
/opt/hostedtoolcache/Python/3.12.0/x64/lib/python3.12/site-packages/werkzeug/routing/rules.py:761: in _compile_builder
    dom_parts = _parts(dom_ops)
/opt/hostedtoolcache/Python/3.12.0/x64/lib/python3.12/site-packages/werkzeug/routing/rules.py:751: in _parts
    parts = parts or [ast.Str("")]
/opt/hostedtoolcache/Python/3.12.0/x64/lib/python3.12/ast.py:584: in _new
    warnings._deprecated(
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

name = 'ast.Str'
message = '{name} is deprecated and will be removed in Python {remove}; use ast.Constant instead'

    def _deprecated(name, message=_DEPRECATED_MSG, *, remove, _version=sys.version_info):
        """Warn that *name* is deprecated or should be removed.
    
        RuntimeError is raised if *remove* specifies a major/minor tuple older than
        the current Python version or the same version but past the alpha.
    
        The *message* argument is formatted with *name* and *remove* as a Python
        version (e.g. "3.11").
    
        """
        remove_formatted = f"{remove[0]}.{remove[1]}"
        if (_version[:2] > remove) or (_version[:2] == remove and _version[3] != "alpha"):
            msg = f"{name!r} was slated for removal after Python {remove_formatted} alpha"
            raise RuntimeError(msg)
        else:
            msg = message.format(name=name, remove=remove_formatted)
>           warn(msg, DeprecationWarning, stacklevel=3)
E           DeprecationWarning: ast.Str is deprecated and will be removed in Python 3.14; use ast.Constant instead

/opt/hostedtoolcache/Python/3.12.0/x64/lib/python3.12/warnings.py:529: DeprecationWarning

Check failure on line 1 in TestErrors

See this annotation in the file changed.

@github-actions github-actions / JUnit Report python3.12 marshmallow==3.17.* flask=='2.2.*' werkzeug=='2.2.*'

TestErrors.test_customize_rebar_error_attribute

DeprecationWarning: ast.Str is deprecated and will be removed in Python 3.14; use ast.Constant instead
Raw output
self = <tests.test_errors.TestErrors testMethod=test_customize_rebar_error_attribute>

    def setUp(self):
>       self.app = self.create_app()

tests/test_errors.py:32: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
tests/test_errors.py:36: in create_app
    app = Flask(__name__)
/opt/hostedtoolcache/Python/3.12.0/x64/lib/python3.12/site-packages/flask/app.py:709: in __init__
    self.add_url_rule(
/opt/hostedtoolcache/Python/3.12.0/x64/lib/python3.12/site-packages/flask/scaffold.py:50: in wrapper_func
    return f(self, *args, **kwargs)
/opt/hostedtoolcache/Python/3.12.0/x64/lib/python3.12/site-packages/flask/app.py:1357: in add_url_rule
    self.url_map.add(rule)
/opt/hostedtoolcache/Python/3.12.0/x64/lib/python3.12/site-packages/werkzeug/routing/map.py:174: in add
    rule.bind(self)
/opt/hostedtoolcache/Python/3.12.0/x64/lib/python3.12/site-packages/werkzeug/routing/rules.py:560: in bind
    self.compile()
/opt/hostedtoolcache/Python/3.12.0/x64/lib/python3.12/site-packages/werkzeug/routing/rules.py:705: in compile
    self._build = self._compile_builder(False).__get__(self, None)
/opt/hostedtoolcache/Python/3.12.0/x64/lib/python3.12/site-packages/werkzeug/routing/rules.py:761: in _compile_builder
    dom_parts = _parts(dom_ops)
/opt/hostedtoolcache/Python/3.12.0/x64/lib/python3.12/site-packages/werkzeug/routing/rules.py:751: in _parts
    parts = parts or [ast.Str("")]
/opt/hostedtoolcache/Python/3.12.0/x64/lib/python3.12/ast.py:584: in _new
    warnings._deprecated(
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

name = 'ast.Str'
message = '{name} is deprecated and will be removed in Python {remove}; use ast.Constant instead'

    def _deprecated(name, message=_DEPRECATED_MSG, *, remove, _version=sys.version_info):
        """Warn that *name* is deprecated or should be removed.
    
        RuntimeError is raised if *remove* specifies a major/minor tuple older than
        the current Python version or the same version but past the alpha.
    
        The *message* argument is formatted with *name* and *remove* as a Python
        version (e.g. "3.11").
    
        """
        remove_formatted = f"{remove[0]}.{remove[1]}"
        if (_version[:2] > remove) or (_version[:2] == remove and _version[3] != "alpha"):
            msg = f"{name!r} was slated for removal after Python {remove_formatted} alpha"
            raise RuntimeError(msg)
        else:
            msg = message.format(name=name, remove=remove_formatted)
>           warn(msg, DeprecationWarning, stacklevel=3)
E           DeprecationWarning: ast.Str is deprecated and will be removed in Python 3.14; use ast.Constant instead

/opt/hostedtoolcache/Python/3.12.0/x64/lib/python3.12/warnings.py:529: DeprecationWarning

Check failure on line 1 in TestErrors

See this annotation in the file changed.

@github-actions github-actions / JUnit Report python3.12 marshmallow==3.17.* flask=='2.2.*' werkzeug=='2.2.*'

TestErrors.test_default_400_errors_are_formatted_correctly

DeprecationWarning: ast.Str is deprecated and will be removed in Python 3.14; use ast.Constant instead
Raw output
self = <tests.test_errors.TestErrors testMethod=test_default_400_errors_are_formatted_correctly>

    def setUp(self):
>       self.app = self.create_app()

tests/test_errors.py:32: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
tests/test_errors.py:36: in create_app
    app = Flask(__name__)
/opt/hostedtoolcache/Python/3.12.0/x64/lib/python3.12/site-packages/flask/app.py:709: in __init__
    self.add_url_rule(
/opt/hostedtoolcache/Python/3.12.0/x64/lib/python3.12/site-packages/flask/scaffold.py:50: in wrapper_func
    return f(self, *args, **kwargs)
/opt/hostedtoolcache/Python/3.12.0/x64/lib/python3.12/site-packages/flask/app.py:1357: in add_url_rule
    self.url_map.add(rule)
/opt/hostedtoolcache/Python/3.12.0/x64/lib/python3.12/site-packages/werkzeug/routing/map.py:174: in add
    rule.bind(self)
/opt/hostedtoolcache/Python/3.12.0/x64/lib/python3.12/site-packages/werkzeug/routing/rules.py:560: in bind
    self.compile()
/opt/hostedtoolcache/Python/3.12.0/x64/lib/python3.12/site-packages/werkzeug/routing/rules.py:705: in compile
    self._build = self._compile_builder(False).__get__(self, None)
/opt/hostedtoolcache/Python/3.12.0/x64/lib/python3.12/site-packages/werkzeug/routing/rules.py:761: in _compile_builder
    dom_parts = _parts(dom_ops)
/opt/hostedtoolcache/Python/3.12.0/x64/lib/python3.12/site-packages/werkzeug/routing/rules.py:751: in _parts
    parts = parts or [ast.Str("")]
/opt/hostedtoolcache/Python/3.12.0/x64/lib/python3.12/ast.py:584: in _new
    warnings._deprecated(
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

name = 'ast.Str'
message = '{name} is deprecated and will be removed in Python {remove}; use ast.Constant instead'

    def _deprecated(name, message=_DEPRECATED_MSG, *, remove, _version=sys.version_info):
        """Warn that *name* is deprecated or should be removed.
    
        RuntimeError is raised if *remove* specifies a major/minor tuple older than
        the current Python version or the same version but past the alpha.
    
        The *message* argument is formatted with *name* and *remove* as a Python
        version (e.g. "3.11").
    
        """
        remove_formatted = f"{remove[0]}.{remove[1]}"
        if (_version[:2] > remove) or (_version[:2] == remove and _version[3] != "alpha"):
            msg = f"{name!r} was slated for removal after Python {remove_formatted} alpha"
            raise RuntimeError(msg)
        else:
            msg = message.format(name=name, remove=remove_formatted)
>           warn(msg, DeprecationWarning, stacklevel=3)
E           DeprecationWarning: ast.Str is deprecated and will be removed in Python 3.14; use ast.Constant instead

/opt/hostedtoolcache/Python/3.12.0/x64/lib/python3.12/warnings.py:529: DeprecationWarning

Check failure on line 1 in TestErrors

See this annotation in the file changed.

@github-actions github-actions / JUnit Report python3.12 marshmallow==3.17.* flask=='2.2.*' werkzeug=='2.2.*'

TestErrors.test_default_404_errors_are_formatted_correctly

DeprecationWarning: ast.Str is deprecated and will be removed in Python 3.14; use ast.Constant instead
Raw output
self = <tests.test_errors.TestErrors testMethod=test_default_404_errors_are_formatted_correctly>

    def setUp(self):
>       self.app = self.create_app()

tests/test_errors.py:32: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
tests/test_errors.py:36: in create_app
    app = Flask(__name__)
/opt/hostedtoolcache/Python/3.12.0/x64/lib/python3.12/site-packages/flask/app.py:709: in __init__
    self.add_url_rule(
/opt/hostedtoolcache/Python/3.12.0/x64/lib/python3.12/site-packages/flask/scaffold.py:50: in wrapper_func
    return f(self, *args, **kwargs)
/opt/hostedtoolcache/Python/3.12.0/x64/lib/python3.12/site-packages/flask/app.py:1357: in add_url_rule
    self.url_map.add(rule)
/opt/hostedtoolcache/Python/3.12.0/x64/lib/python3.12/site-packages/werkzeug/routing/map.py:174: in add
    rule.bind(self)
/opt/hostedtoolcache/Python/3.12.0/x64/lib/python3.12/site-packages/werkzeug/routing/rules.py:560: in bind
    self.compile()
/opt/hostedtoolcache/Python/3.12.0/x64/lib/python3.12/site-packages/werkzeug/routing/rules.py:705: in compile
    self._build = self._compile_builder(False).__get__(self, None)
/opt/hostedtoolcache/Python/3.12.0/x64/lib/python3.12/site-packages/werkzeug/routing/rules.py:761: in _compile_builder
    dom_parts = _parts(dom_ops)
/opt/hostedtoolcache/Python/3.12.0/x64/lib/python3.12/site-packages/werkzeug/routing/rules.py:751: in _parts
    parts = parts or [ast.Str("")]
/opt/hostedtoolcache/Python/3.12.0/x64/lib/python3.12/ast.py:584: in _new
    warnings._deprecated(
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

name = 'ast.Str'
message = '{name} is deprecated and will be removed in Python {remove}; use ast.Constant instead'

    def _deprecated(name, message=_DEPRECATED_MSG, *, remove, _version=sys.version_info):
        """Warn that *name* is deprecated or should be removed.
    
        RuntimeError is raised if *remove* specifies a major/minor tuple older than
        the current Python version or the same version but past the alpha.
    
        The *message* argument is formatted with *name* and *remove* as a Python
        version (e.g. "3.11").
    
        """
        remove_formatted = f"{remove[0]}.{remove[1]}"
        if (_version[:2] > remove) or (_version[:2] == remove and _version[3] != "alpha"):
            msg = f"{name!r} was slated for removal after Python {remove_formatted} alpha"
            raise RuntimeError(msg)
        else:
            msg = message.format(name=name, remove=remove_formatted)
>           warn(msg, DeprecationWarning, stacklevel=3)
E           DeprecationWarning: ast.Str is deprecated and will be removed in Python 3.14; use ast.Constant instead

/opt/hostedtoolcache/Python/3.12.0/x64/lib/python3.12/warnings.py:529: DeprecationWarning

Check failure on line 1 in TestErrors

See this annotation in the file changed.

@github-actions github-actions / JUnit Report python3.12 marshmallow==3.17.* flask=='2.2.*' werkzeug=='2.2.*'

TestErrors.test_default_405_errors_are_formatted_correctly

DeprecationWarning: ast.Str is deprecated and will be removed in Python 3.14; use ast.Constant instead
Raw output
self = <tests.test_errors.TestErrors testMethod=test_default_405_errors_are_formatted_correctly>

    def setUp(self):
>       self.app = self.create_app()

tests/test_errors.py:32: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
tests/test_errors.py:36: in create_app
    app = Flask(__name__)
/opt/hostedtoolcache/Python/3.12.0/x64/lib/python3.12/site-packages/flask/app.py:709: in __init__
    self.add_url_rule(
/opt/hostedtoolcache/Python/3.12.0/x64/lib/python3.12/site-packages/flask/scaffold.py:50: in wrapper_func
    return f(self, *args, **kwargs)
/opt/hostedtoolcache/Python/3.12.0/x64/lib/python3.12/site-packages/flask/app.py:1357: in add_url_rule
    self.url_map.add(rule)
/opt/hostedtoolcache/Python/3.12.0/x64/lib/python3.12/site-packages/werkzeug/routing/map.py:174: in add
    rule.bind(self)
/opt/hostedtoolcache/Python/3.12.0/x64/lib/python3.12/site-packages/werkzeug/routing/rules.py:560: in bind
    self.compile()
/opt/hostedtoolcache/Python/3.12.0/x64/lib/python3.12/site-packages/werkzeug/routing/rules.py:705: in compile
    self._build = self._compile_builder(False).__get__(self, None)
/opt/hostedtoolcache/Python/3.12.0/x64/lib/python3.12/site-packages/werkzeug/routing/rules.py:761: in _compile_builder
    dom_parts = _parts(dom_ops)
/opt/hostedtoolcache/Python/3.12.0/x64/lib/python3.12/site-packages/werkzeug/routing/rules.py:751: in _parts
    parts = parts or [ast.Str("")]
/opt/hostedtoolcache/Python/3.12.0/x64/lib/python3.12/ast.py:584: in _new
    warnings._deprecated(
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

name = 'ast.Str'
message = '{name} is deprecated and will be removed in Python {remove}; use ast.Constant instead'

    def _deprecated(name, message=_DEPRECATED_MSG, *, remove, _version=sys.version_info):
        """Warn that *name* is deprecated or should be removed.
    
        RuntimeError is raised if *remove* specifies a major/minor tuple older than
        the current Python version or the same version but past the alpha.
    
        The *message* argument is formatted with *name* and *remove* as a Python
        version (e.g. "3.11").
    
        """
        remove_formatted = f"{remove[0]}.{remove[1]}"
        if (_version[:2] > remove) or (_version[:2] == remove and _version[3] != "alpha"):
            msg = f"{name!r} was slated for removal after Python {remove_formatted} alpha"
            raise RuntimeError(msg)
        else:
            msg = message.format(name=name, remove=remove_formatted)
>           warn(msg, DeprecationWarning, stacklevel=3)
E           DeprecationWarning: ast.Str is deprecated and will be removed in Python 3.14; use ast.Constant instead

/opt/hostedtoolcache/Python/3.12.0/x64/lib/python3.12/warnings.py:529: DeprecationWarning

Check failure on line 1 in TestErrors

See this annotation in the file changed.

@github-actions github-actions / JUnit Report python3.12 marshmallow==3.17.* flask=='2.2.*' werkzeug=='2.2.*'

TestErrors.test_default_500_errors_are_formatted_correctly

DeprecationWarning: ast.Str is deprecated and will be removed in Python 3.14; use ast.Constant instead
Raw output
self = <tests.test_errors.TestErrors testMethod=test_default_500_errors_are_formatted_correctly>

    def setUp(self):
>       self.app = self.create_app()

tests/test_errors.py:32: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
tests/test_errors.py:36: in create_app
    app = Flask(__name__)
/opt/hostedtoolcache/Python/3.12.0/x64/lib/python3.12/site-packages/flask/app.py:709: in __init__
    self.add_url_rule(
/opt/hostedtoolcache/Python/3.12.0/x64/lib/python3.12/site-packages/flask/scaffold.py:50: in wrapper_func
    return f(self, *args, **kwargs)
/opt/hostedtoolcache/Python/3.12.0/x64/lib/python3.12/site-packages/flask/app.py:1357: in add_url_rule
    self.url_map.add(rule)
/opt/hostedtoolcache/Python/3.12.0/x64/lib/python3.12/site-packages/werkzeug/routing/map.py:174: in add
    rule.bind(self)
/opt/hostedtoolcache/Python/3.12.0/x64/lib/python3.12/site-packages/werkzeug/routing/rules.py:560: in bind
    self.compile()
/opt/hostedtoolcache/Python/3.12.0/x64/lib/python3.12/site-packages/werkzeug/routing/rules.py:705: in compile
    self._build = self._compile_builder(False).__get__(self, None)
/opt/hostedtoolcache/Python/3.12.0/x64/lib/python3.12/site-packages/werkzeug/routing/rules.py:761: in _compile_builder
    dom_parts = _parts(dom_ops)
/opt/hostedtoolcache/Python/3.12.0/x64/lib/python3.12/site-packages/werkzeug/routing/rules.py:751: in _parts
    parts = parts or [ast.Str("")]
/opt/hostedtoolcache/Python/3.12.0/x64/lib/python3.12/ast.py:584: in _new
    warnings._deprecated(
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

name = 'ast.Str'
message = '{name} is deprecated and will be removed in Python {remove}; use ast.Constant instead'

    def _deprecated(name, message=_DEPRECATED_MSG, *, remove, _version=sys.version_info):
        """Warn that *name* is deprecated or should be removed.
    
        RuntimeError is raised if *remove* specifies a major/minor tuple older than
        the current Python version or the same version but past the alpha.
    
        The *message* argument is formatted with *name* and *remove* as a Python
        version (e.g. "3.11").
    
        """
        remove_formatted = f"{remove[0]}.{remove[1]}"
        if (_version[:2] > remove) or (_version[:2] == remove and _version[3] != "alpha"):
            msg = f"{name!r} was slated for removal after Python {remove_formatted} alpha"
            raise RuntimeError(msg)
        else:
            msg = message.format(name=name, remove=remove_formatted)
>           warn(msg, DeprecationWarning, stacklevel=3)
E           DeprecationWarning: ast.Str is deprecated and will be removed in Python 3.14; use ast.Constant instead

/opt/hostedtoolcache/Python/3.12.0/x64/lib/python3.12/warnings.py:529: DeprecationWarning

Check failure on line 1 in TestErrors

See this annotation in the file changed.

@github-actions github-actions / JUnit Report python3.12 marshmallow==3.17.* flask=='2.2.*' werkzeug=='2.2.*'

TestErrors.test_timeouts_log_exceptions

DeprecationWarning: ast.Str is deprecated and will be removed in Python 3.14; use ast.Constant instead
Raw output
self = <tests.test_errors.TestErrors testMethod=test_timeouts_log_exceptions>

    def setUp(self):
>       self.app = self.create_app()

tests/test_errors.py:32: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
tests/test_errors.py:36: in create_app
    app = Flask(__name__)
/opt/hostedtoolcache/Python/3.12.0/x64/lib/python3.12/site-packages/flask/app.py:709: in __init__
    self.add_url_rule(
/opt/hostedtoolcache/Python/3.12.0/x64/lib/python3.12/site-packages/flask/scaffold.py:50: in wrapper_func
    return f(self, *args, **kwargs)
/opt/hostedtoolcache/Python/3.12.0/x64/lib/python3.12/site-packages/flask/app.py:1357: in add_url_rule
    self.url_map.add(rule)
/opt/hostedtoolcache/Python/3.12.0/x64/lib/python3.12/site-packages/werkzeug/routing/map.py:174: in add
    rule.bind(self)
/opt/hostedtoolcache/Python/3.12.0/x64/lib/python3.12/site-packages/werkzeug/routing/rules.py:560: in bind
    self.compile()
/opt/hostedtoolcache/Python/3.12.0/x64/lib/python3.12/site-packages/werkzeug/routing/rules.py:705: in compile
    self._build = self._compile_builder(False).__get__(self, None)
/opt/hostedtoolcache/Python/3.12.0/x64/lib/python3.12/site-packages/werkzeug/routing/rules.py:761: in _compile_builder
    dom_parts = _parts(dom_ops)
/opt/hostedtoolcache/Python/3.12.0/x64/lib/python3.12/site-packages/werkzeug/routing/rules.py:751: in _parts
    parts = parts or [ast.Str("")]
/opt/hostedtoolcache/Python/3.12.0/x64/lib/python3.12/ast.py:584: in _new
    warnings._deprecated(
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

name = 'ast.Str'
message = '{name} is deprecated and will be removed in Python {remove}; use ast.Constant instead'

    def _deprecated(name, message=_DEPRECATED_MSG, *, remove, _version=sys.version_info):
        """Warn that *name* is deprecated or should be removed.
    
        RuntimeError is raised if *remove* specifies a major/minor tuple older than
        the current Python version or the same version but past the alpha.
    
        The *message* argument is formatted with *name* and *remove* as a Python
        version (e.g. "3.11").
    
        """
        remove_formatted = f"{remove[0]}.{remove[1]}"
        if (_version[:2] > remove) or (_version[:2] == remove and _version[3] != "alpha"):
            msg = f"{name!r} was slated for removal after Python {remove_formatted} alpha"
            raise RuntimeError(msg)
        else:
            msg = message.format(name=name, remove=remove_formatted)
>           warn(msg, DeprecationWarning, stacklevel=3)
E           DeprecationWarning: ast.Str is deprecated and will be removed in Python 3.14; use ast.Constant instead

/opt/hostedtoolcache/Python/3.12.0/x64/lib/python3.12/warnings.py:529: DeprecationWarning

Check failure on line 1 in TestJsonBodyValidation

See this annotation in the file changed.

@github-actions github-actions / JUnit Report python3.12 marshmallow==3.17.* flask=='2.2.*' werkzeug=='2.2.*'

TestJsonBodyValidation.test_invalid_json_error

DeprecationWarning: ast.Str is deprecated and will be removed in Python 3.14; use ast.Constant instead
Raw output
self = <tests.test_errors.TestJsonBodyValidation testMethod=test_invalid_json_error>

    def setUp(self):
>       self.app = self.create_app()

tests/test_errors.py:138: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
tests/test_errors.py:149: in create_app
    app = Flask(__name__)
/opt/hostedtoolcache/Python/3.12.0/x64/lib/python3.12/site-packages/flask/app.py:709: in __init__
    self.add_url_rule(
/opt/hostedtoolcache/Python/3.12.0/x64/lib/python3.12/site-packages/flask/scaffold.py:50: in wrapper_func
    return f(self, *args, **kwargs)
/opt/hostedtoolcache/Python/3.12.0/x64/lib/python3.12/site-packages/flask/app.py:1357: in add_url_rule
    self.url_map.add(rule)
/opt/hostedtoolcache/Python/3.12.0/x64/lib/python3.12/site-packages/werkzeug/routing/map.py:174: in add
    rule.bind(self)
/opt/hostedtoolcache/Python/3.12.0/x64/lib/python3.12/site-packages/werkzeug/routing/rules.py:560: in bind
    self.compile()
/opt/hostedtoolcache/Python/3.12.0/x64/lib/python3.12/site-packages/werkzeug/routing/rules.py:705: in compile
    self._build = self._compile_builder(False).__get__(self, None)
/opt/hostedtoolcache/Python/3.12.0/x64/lib/python3.12/site-packages/werkzeug/routing/rules.py:761: in _compile_builder
    dom_parts = _parts(dom_ops)
/opt/hostedtoolcache/Python/3.12.0/x64/lib/python3.12/site-packages/werkzeug/routing/rules.py:751: in _parts
    parts = parts or [ast.Str("")]
/opt/hostedtoolcache/Python/3.12.0/x64/lib/python3.12/ast.py:584: in _new
    warnings._deprecated(
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

name = 'ast.Str'
message = '{name} is deprecated and will be removed in Python {remove}; use ast.Constant instead'

    def _deprecated(name, message=_DEPRECATED_MSG, *, remove, _version=sys.version_info):
        """Warn that *name* is deprecated or should be removed.
    
        RuntimeError is raised if *remove* specifies a major/minor tuple older than
        the current Python version or the same version but past the alpha.
    
        The *message* argument is formatted with *name* and *remove* as a Python
        version (e.g. "3.11").
    
        """
        remove_formatted = f"{remove[0]}.{remove[1]}"
        if (_version[:2] > remove) or (_version[:2] == remove and _version[3] != "alpha"):
            msg = f"{name!r} was slated for removal after Python {remove_formatted} alpha"
            raise RuntimeError(msg)
        else:
            msg = message.format(name=name, remove=remove_formatted)
>           warn(msg, DeprecationWarning, stacklevel=3)
E           DeprecationWarning: ast.Str is deprecated and will be removed in Python 3.14; use ast.Constant instead

/opt/hostedtoolcache/Python/3.12.0/x64/lib/python3.12/warnings.py:529: DeprecationWarning

Check failure on line 1 in TestJsonBodyValidation

See this annotation in the file changed.

@github-actions github-actions / JUnit Report python3.12 marshmallow==3.17.* flask=='2.2.*' werkzeug=='2.2.*'

TestJsonBodyValidation.test_json_body_parameter_validation

DeprecationWarning: ast.Str is deprecated and will be removed in Python 3.14; use ast.Constant instead
Raw output
self = <tests.test_errors.TestJsonBodyValidation testMethod=test_json_body_parameter_validation>

    def setUp(self):
>       self.app = self.create_app()

tests/test_errors.py:138: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
tests/test_errors.py:149: in create_app
    app = Flask(__name__)
/opt/hostedtoolcache/Python/3.12.0/x64/lib/python3.12/site-packages/flask/app.py:709: in __init__
    self.add_url_rule(
/opt/hostedtoolcache/Python/3.12.0/x64/lib/python3.12/site-packages/flask/scaffold.py:50: in wrapper_func
    return f(self, *args, **kwargs)
/opt/hostedtoolcache/Python/3.12.0/x64/lib/python3.12/site-packages/flask/app.py:1357: in add_url_rule
    self.url_map.add(rule)
/opt/hostedtoolcache/Python/3.12.0/x64/lib/python3.12/site-packages/werkzeug/routing/map.py:174: in add
    rule.bind(self)
/opt/hostedtoolcache/Python/3.12.0/x64/lib/python3.12/site-packages/werkzeug/routing/rules.py:560: in bind
    self.compile()
/opt/hostedtoolcache/Python/3.12.0/x64/lib/python3.12/site-packages/werkzeug/routing/rules.py:705: in compile
    self._build = self._compile_builder(False).__get__(self, None)
/opt/hostedtoolcache/Python/3.12.0/x64/lib/python3.12/site-packages/werkzeug/routing/rules.py:761: in _compile_builder
    dom_parts = _parts(dom_ops)
/opt/hostedtoolcache/Python/3.12.0/x64/lib/python3.12/site-packages/werkzeug/routing/rules.py:751: in _parts
    parts = parts or [ast.Str("")]
/opt/hostedtoolcache/Python/3.12.0/x64/lib/python3.12/ast.py:584: in _new
    warnings._deprecated(
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

name = 'ast.Str'
message = '{name} is deprecated and will be removed in Python {remove}; use ast.Constant instead'

    def _deprecated(name, message=_DEPRECATED_MSG, *, remove, _version=sys.version_info):
        """Warn that *name* is deprecated or should be removed.
    
        RuntimeError is raised if *remove* specifies a major/minor tuple older than
        the current Python version or the same version but past the alpha.
    
        The *message* argument is formatted with *name* and *remove* as a Python
        version (e.g. "3.11").
    
        """
        remove_formatted = f"{remove[0]}.{remove[1]}"
        if (_version[:2] > remove) or (_version[:2] == remove and _version[3] != "alpha"):
            msg = f"{name!r} was slated for removal after Python {remove_formatted} alpha"
            raise RuntimeError(msg)
        else:
            msg = message.format(name=name, remove=remove_formatted)
>           warn(msg, DeprecationWarning, stacklevel=3)
E           DeprecationWarning: ast.Str is deprecated and will be removed in Python 3.14; use ast.Constant instead

/opt/hostedtoolcache/Python/3.12.0/x64/lib/python3.12/warnings.py:529: DeprecationWarning

Check failure on line 1 in TestJsonBodyValidation

See this annotation in the file changed.

@github-actions github-actions / JUnit Report python3.12 marshmallow==3.17.* flask=='2.2.*' werkzeug=='2.2.*'

TestJsonBodyValidation.test_json_encoding_validation

DeprecationWarning: ast.Str is deprecated and will be removed in Python 3.14; use ast.Constant instead
Raw output
self = <tests.test_errors.TestJsonBodyValidation testMethod=test_json_encoding_validation>

    def setUp(self):
>       self.app = self.create_app()

tests/test_errors.py:138: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
tests/test_errors.py:149: in create_app
    app = Flask(__name__)
/opt/hostedtoolcache/Python/3.12.0/x64/lib/python3.12/site-packages/flask/app.py:709: in __init__
    self.add_url_rule(
/opt/hostedtoolcache/Python/3.12.0/x64/lib/python3.12/site-packages/flask/scaffold.py:50: in wrapper_func
    return f(self, *args, **kwargs)
/opt/hostedtoolcache/Python/3.12.0/x64/lib/python3.12/site-packages/flask/app.py:1357: in add_url_rule
    self.url_map.add(rule)
/opt/hostedtoolcache/Python/3.12.0/x64/lib/python3.12/site-packages/werkzeug/routing/map.py:174: in add
    rule.bind(self)
/opt/hostedtoolcache/Python/3.12.0/x64/lib/python3.12/site-packages/werkzeug/routing/rules.py:560: in bind
    self.compile()
/opt/hostedtoolcache/Python/3.12.0/x64/lib/python3.12/site-packages/werkzeug/routing/rules.py:705: in compile
    self._build = self._compile_builder(False).__get__(self, None)
/opt/hostedtoolcache/Python/3.12.0/x64/lib/python3.12/site-packages/werkzeug/routing/rules.py:761: in _compile_builder
    dom_parts = _parts(dom_ops)
/opt/hostedtoolcache/Python/3.12.0/x64/lib/python3.12/site-packages/werkzeug/routing/rules.py:751: in _parts
    parts = parts or [ast.Str("")]
/opt/hostedtoolcache/Python/3.12.0/x64/lib/python3.12/ast.py:584: in _new
    warnings._deprecated(
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

name = 'ast.Str'
message = '{name} is deprecated and will be removed in Python {remove}; use ast.Constant instead'

    def _deprecated(name, message=_DEPRECATED_MSG, *, remove, _version=sys.version_info):
        """Warn that *name* is deprecated or should be removed.
    
        RuntimeError is raised if *remove* specifies a major/minor tuple older than
        the current Python version or the same version but past the alpha.
    
        The *message* argument is formatted with *name* and *remove* as a Python
        version (e.g. "3.11").
    
        """
        remove_formatted = f"{remove[0]}.{remove[1]}"
        if (_version[:2] > remove) or (_version[:2] == remove and _version[3] != "alpha"):
            msg = f"{name!r} was slated for removal after Python {remove_formatted} alpha"
            raise RuntimeError(msg)
        else:
            msg = message.format(name=name, remove=remove_formatted)
>           warn(msg, DeprecationWarning, stacklevel=3)
E           DeprecationWarning: ast.Str is deprecated and will be removed in Python 3.14; use ast.Constant instead

/opt/hostedtoolcache/Python/3.12.0/x64/lib/python3.12/warnings.py:529: DeprecationWarning

Check failure on line 1 in TestJsonBodyValidation

See this annotation in the file changed.

@github-actions github-actions / JUnit Report python3.12 marshmallow==3.17.* flask=='2.2.*' werkzeug=='2.2.*'

TestJsonBodyValidation.test_representing_complex_errors

DeprecationWarning: ast.Str is deprecated and will be removed in Python 3.14; use ast.Constant instead
Raw output
self = <tests.test_errors.TestJsonBodyValidation testMethod=test_representing_complex_errors>

    def setUp(self):
>       self.app = self.create_app()

tests/test_errors.py:138: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
tests/test_errors.py:149: in create_app
    app = Flask(__name__)
/opt/hostedtoolcache/Python/3.12.0/x64/lib/python3.12/site-packages/flask/app.py:709: in __init__
    self.add_url_rule(
/opt/hostedtoolcache/Python/3.12.0/x64/lib/python3.12/site-packages/flask/scaffold.py:50: in wrapper_func
    return f(self, *args, **kwargs)
/opt/hostedtoolcache/Python/3.12.0/x64/lib/python3.12/site-packages/flask/app.py:1357: in add_url_rule
    self.url_map.add(rule)
/opt/hostedtoolcache/Python/3.12.0/x64/lib/python3.12/site-packages/werkzeug/routing/map.py:174: in add
    rule.bind(self)
/opt/hostedtoolcache/Python/3.12.0/x64/lib/python3.12/site-packages/werkzeug/routing/rules.py:560: in bind
    self.compile()
/opt/hostedtoolcache/Python/3.12.0/x64/lib/python3.12/site-packages/werkzeug/routing/rules.py:705: in compile
    self._build = self._compile_builder(False).__get__(self, None)
/opt/hostedtoolcache/Python/3.12.0/x64/lib/python3.12/site-packages/werkzeug/routing/rules.py:761: in _compile_builder
    dom_parts = _parts(dom_ops)
/opt/hostedtoolcache/Python/3.12.0/x64/lib/python3.12/site-packages/werkzeug/routing/rules.py:751: in _parts
    parts = parts or [ast.Str("")]
/opt/hostedtoolcache/Python/3.12.0/x64/lib/python3.12/ast.py:584: in _new
    warnings._deprecated(
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

name = 'ast.Str'
message = '{name} is deprecated and will be removed in Python {remove}; use ast.Constant instead'

    def _deprecated(name, message=_DEPRECATED_MSG, *, remove, _version=sys.version_info):
        """Warn that *name* is deprecated or should be removed.
    
        RuntimeError is raised if *remove* specifies a major/minor tuple older than
        the current Python version or the same version but past the alpha.
    
        The *message* argument is formatted with *name* and *remove* as a Python
        version (e.g. "3.11").
    
        """
        remove_formatted = f"{remove[0]}.{remove[1]}"
        if (_version[:2] > remove) or (_version[:2] == remove and _version[3] != "alpha"):
            msg = f"{name!r} was slated for removal after Python {remove_formatted} alpha"
            raise RuntimeError(msg)
        else:
            msg = message.format(name=name, remove=remove_formatted)
>           warn(msg, DeprecationWarning, stacklevel=3)
E           DeprecationWarning: ast.Str is deprecated and will be removed in Python 3.14; use ast.Constant instead

/opt/hostedtoolcache/Python/3.12.0/x64/lib/python3.12/warnings.py:529: DeprecationWarning

Check failure on line 1 in TestQueryStringValidation

See this annotation in the file changed.

@github-actions github-actions / JUnit Report python3.12 marshmallow==3.17.* flask=='2.2.*' werkzeug=='2.2.*'

TestQueryStringValidation.test_query_string_parameter_validation

DeprecationWarning: ast.Str is deprecated and will be removed in Python 3.14; use ast.Constant instead
Raw output
self = <tests.test_errors.TestQueryStringValidation testMethod=test_query_string_parameter_validation>

    def setUp(self):
>       self.app = self.create_app()

tests/test_errors.py:265: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
tests/test_errors.py:269: in create_app
    app = Flask(__name__)
/opt/hostedtoolcache/Python/3.12.0/x64/lib/python3.12/site-packages/flask/app.py:709: in __init__
    self.add_url_rule(
/opt/hostedtoolcache/Python/3.12.0/x64/lib/python3.12/site-packages/flask/scaffold.py:50: in wrapper_func
    return f(self, *args, **kwargs)
/opt/hostedtoolcache/Python/3.12.0/x64/lib/python3.12/site-packages/flask/app.py:1357: in add_url_rule
    self.url_map.add(rule)
/opt/hostedtoolcache/Python/3.12.0/x64/lib/python3.12/site-packages/werkzeug/routing/map.py:174: in add
    rule.bind(self)
/opt/hostedtoolcache/Python/3.12.0/x64/lib/python3.12/site-packages/werkzeug/routing/rules.py:560: in bind
    self.compile()
/opt/hostedtoolcache/Python/3.12.0/x64/lib/python3.12/site-packages/werkzeug/routing/rules.py:705: in compile
    self._build = self._compile_builder(False).__get__(self, None)
/opt/hostedtoolcache/Python/3.12.0/x64/lib/python3.12/site-packages/werkzeug/routing/rules.py:761: in _compile_builder
    dom_parts = _parts(dom_ops)
/opt/hostedtoolcache/Python/3.12.0/x64/lib/python3.12/site-packages/werkzeug/routing/rules.py:751: in _parts
    parts = parts or [ast.Str("")]
/opt/hostedtoolcache/Python/3.12.0/x64/lib/python3.12/ast.py:584: in _new
    warnings._deprecated(
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

name = 'ast.Str'
message = '{name} is deprecated and will be removed in Python {remove}; use ast.Constant instead'

    def _deprecated(name, message=_DEPRECATED_MSG, *, remove, _version=sys.version_info):
        """Warn that *name* is deprecated or should be removed.
    
        RuntimeError is raised if *remove* specifies a major/minor tuple older than
        the current Python version or the same version but past the alpha.
    
        The *message* argument is formatted with *name* and *remove* as a Python
        version (e.g. "3.11").
    
        """
        remove_formatted = f"{remove[0]}.{remove[1]}"
        if (_version[:2] > remove) or (_version[:2] == remove and _version[3] != "alpha"):
            msg = f"{name!r} was slated for removal after Python {remove_formatted} alpha"
            raise RuntimeError(msg)
        else:
            msg = message.format(name=name, remove=remove_formatted)
>           warn(msg, DeprecationWarning, stacklevel=3)
E           DeprecationWarning: ast.Str is deprecated and will be removed in Python 3.14; use ast.Constant instead

/opt/hostedtoolcache/Python/3.12.0/x64/lib/python3.12/warnings.py:529: DeprecationWarning

Check failure on line 1 in RebarTest

See this annotation in the file changed.

@github-actions github-actions / JUnit Report python3.12 marshmallow==3.17.* flask=='2.2.*' werkzeug=='2.2.*'

RebarTest.test_bare_class_schemas_handled[<class 'tests-test_rebar-FooModel'>-<class 'tests-test_rebar-FooListModel'>-<class 'tests-test_rebar-HeadersModel'>]

DeprecationWarning: 'pkgutil.get_loader' is deprecated and slated for removal in Python 3.14; use importlib.util.find_spec() instead
Raw output
self = <tests.test_rebar.RebarTest testMethod=test_bare_class_schemas_handled[<class 'tests-test_rebar-FooModel'>-<class 'tests-test_rebar-FooListModel'>-<class 'tests-test_rebar-HeadersModel'>]>
foo_cls = <class 'tests.test_rebar.FooModel'>
foo_list_cls = <class 'tests.test_rebar.FooListModel'>
headers_cls = <class 'tests.test_rebar.HeadersModel'>

    @parametrize(
        "foo_cls, foo_list_cls, headers_cls",
        [
            (FooSchema, FooListSchema, HeadersSchema),
            (FooModel, FooListModel, HeadersModel),
        ],
    )
    def test_bare_class_schemas_handled(self, foo_cls, foo_list_cls, headers_cls):
        rebar = Rebar()
        registry = rebar.create_handler_registry()
    
        expected_headers = {"x-name": "Header Name"}
    
        def get_foo(*args, **kwargs):
            return expected_foo
    
        def post_foo(*args, **kwargs):
            return expected_foo
    
        register_endpoint(
            registry=registry,
            method="GET",
            path="/my_get_endpoint",
            headers_schema=headers_cls,
            response_body_schema={200: foo_cls},
            query_string_schema=foo_list_cls,
            func=get_foo,
        )
    
        register_endpoint(
            registry=registry,
            method="POST",
            path="/my_post_endpoint",
            request_body_schema=foo_list_cls,
            response_body_schema=foo_cls,
            func=post_foo,
        )
    
        expected_foo = FooSchema().load({"uid": "some_uid", "name": "Namey McNamerton"})
    
>       app = create_rebar_app(rebar)

tests/test_rebar.py:824: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
tests/test_rebar.py:109: in create_rebar_app
    app = Flask("RebarTest")
/opt/hostedtoolcache/Python/3.12.0/x64/lib/python3.12/site-packages/flask/app.py:566: in __init__
    super().__init__(
/opt/hostedtoolcache/Python/3.12.0/x64/lib/python3.12/site-packages/flask/scaffold.py:112: in __init__
    root_path = get_root_path(self.import_name)
/opt/hostedtoolcache/Python/3.12.0/x64/lib/python3.12/site-packages/flask/helpers.py:611: in get_root_path
    loader = pkgutil.get_loader(import_name)
/opt/hostedtoolcache/Python/3.12.0/x64/lib/python3.12/pkgutil.py:273: in get_loader
    warnings._deprecated("pkgutil.get_loader",
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

name = 'pkgutil.get_loader'
message = '{name!r} is deprecated and slated for removal in Python {remove}; use importlib.util.find_spec() instead'

    def _deprecated(name, message=_DEPRECATED_MSG, *, remove, _version=sys.version_info):
        """Warn that *name* is deprecated or should be removed.
    
        RuntimeError is raised if *remove* specifies a major/minor tuple older than
        the current Python version or the same version but past the alpha.
    
        The *message* argument is formatted with *name* and *remove* as a Python
        version (e.g. "3.11").
    
        """
        remove_formatted = f"{remove[0]}.{remove[1]}"
        if (_version[:2] > remove) or (_version[:2] == remove and _version[3] != "alpha"):
            msg = f"{name!r} was slated for removal after Python {remove_formatted} alpha"
            raise RuntimeError(msg)
        else:
            msg = message.format(name=name, remove=remove_formatted)
>           warn(msg, DeprecationWarning, stacklevel=3)
E           DeprecationWarning: 'pkgutil.get_loader' is deprecated and slated for removal in Python 3.14; use importlib.util.find_spec() instead

/opt/hostedtoolcache/Python/3.12.0/x64/lib/python3.12/warnings.py:529: DeprecationWarning

Check failure on line 1 in RebarTest

See this annotation in the file changed.

@github-actions github-actions / JUnit Report python3.12 marshmallow==3.17.* flask=='2.2.*' werkzeug=='2.2.*'

RebarTest.test_bare_class_schemas_handled[<class 'tests-test_rebar-FooSchema'>-<class 'tests-test_rebar-FooListSchema'>-<class 'tests-test_rebar-HeadersSchema'>]

DeprecationWarning: 'pkgutil.get_loader' is deprecated and slated for removal in Python 3.14; use importlib.util.find_spec() instead
Raw output
self = <tests.test_rebar.RebarTest testMethod=test_bare_class_schemas_handled[<class 'tests-test_rebar-FooSchema'>-<class 'tests-test_rebar-FooListSchema'>-<class 'tests-test_rebar-HeadersSchema'>]>
foo_cls = <class 'tests.test_rebar.FooSchema'>
foo_list_cls = <class 'tests.test_rebar.FooListSchema'>
headers_cls = <class 'tests.test_rebar.HeadersSchema'>

    @parametrize(
        "foo_cls, foo_list_cls, headers_cls",
        [
            (FooSchema, FooListSchema, HeadersSchema),
            (FooModel, FooListModel, HeadersModel),
        ],
    )
    def test_bare_class_schemas_handled(self, foo_cls, foo_list_cls, headers_cls):
        rebar = Rebar()
        registry = rebar.create_handler_registry()
    
        expected_headers = {"x-name": "Header Name"}
    
        def get_foo(*args, **kwargs):
            return expected_foo
    
        def post_foo(*args, **kwargs):
            return expected_foo
    
        register_endpoint(
            registry=registry,
            method="GET",
            path="/my_get_endpoint",
            headers_schema=headers_cls,
            response_body_schema={200: foo_cls},
            query_string_schema=foo_list_cls,
            func=get_foo,
        )
    
        register_endpoint(
            registry=registry,
            method="POST",
            path="/my_post_endpoint",
            request_body_schema=foo_list_cls,
            response_body_schema=foo_cls,
            func=post_foo,
        )
    
        expected_foo = FooSchema().load({"uid": "some_uid", "name": "Namey McNamerton"})
    
>       app = create_rebar_app(rebar)

tests/test_rebar.py:824: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
tests/test_rebar.py:109: in create_rebar_app
    app = Flask("RebarTest")
/opt/hostedtoolcache/Python/3.12.0/x64/lib/python3.12/site-packages/flask/app.py:566: in __init__
    super().__init__(
/opt/hostedtoolcache/Python/3.12.0/x64/lib/python3.12/site-packages/flask/scaffold.py:112: in __init__
    root_path = get_root_path(self.import_name)
/opt/hostedtoolcache/Python/3.12.0/x64/lib/python3.12/site-packages/flask/helpers.py:611: in get_root_path
    loader = pkgutil.get_loader(import_name)
/opt/hostedtoolcache/Python/3.12.0/x64/lib/python3.12/pkgutil.py:273: in get_loader
    warnings._deprecated("pkgutil.get_loader",
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

name = 'pkgutil.get_loader'
message = '{name!r} is deprecated and slated for removal in Python {remove}; use importlib.util.find_spec() instead'

    def _deprecated(name, message=_DEPRECATED_MSG, *, remove, _version=sys.version_info):
        """Warn that *name* is deprecated or should be removed.
    
        RuntimeError is raised if *remove* specifies a major/minor tuple older than
        the current Python version or the same version but past the alpha.
    
        The *message* argument is formatted with *name* and *remove* as a Python
        version (e.g. "3.11").
    
        """
        remove_formatted = f"{remove[0]}.{remove[1]}"
        if (_version[:2] > remove) or (_version[:2] == remove and _version[3] != "alpha"):
            msg = f"{name!r} was slated for removal after Python {remove_formatted} alpha"
            raise RuntimeError(msg)
        else:
            msg = message.format(name=name, remove=remove_formatted)
>           warn(msg, DeprecationWarning, stacklevel=3)
E           DeprecationWarning: 'pkgutil.get_loader' is deprecated and slated for removal in Python 3.14; use importlib.util.find_spec() instead

/opt/hostedtoolcache/Python/3.12.0/x64/lib/python3.12/warnings.py:529: DeprecationWarning

Check failure on line 1 in RebarTest

See this annotation in the file changed.

@github-actions github-actions / JUnit Report python3.12 marshmallow==3.17.* flask=='2.2.*' werkzeug=='2.2.*'

RebarTest.test_clone_rebar

DeprecationWarning: ast.Str is deprecated and will be removed in Python 3.14; use ast.Constant instead
Raw output
self = <tests.test_rebar.RebarTest testMethod=test_clone_rebar>

    def test_clone_rebar(self):
        rebar = Rebar()
>       app = Flask(__name__)

tests/test_rebar.py:721: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/opt/hostedtoolcache/Python/3.12.0/x64/lib/python3.12/site-packages/flask/app.py:709: in __init__
    self.add_url_rule(
/opt/hostedtoolcache/Python/3.12.0/x64/lib/python3.12/site-packages/flask/scaffold.py:50: in wrapper_func
    return f(self, *args, **kwargs)
/opt/hostedtoolcache/Python/3.12.0/x64/lib/python3.12/site-packages/flask/app.py:1357: in add_url_rule
    self.url_map.add(rule)
/opt/hostedtoolcache/Python/3.12.0/x64/lib/python3.12/site-packages/werkzeug/routing/map.py:174: in add
    rule.bind(self)
/opt/hostedtoolcache/Python/3.12.0/x64/lib/python3.12/site-packages/werkzeug/routing/rules.py:560: in bind
    self.compile()
/opt/hostedtoolcache/Python/3.12.0/x64/lib/python3.12/site-packages/werkzeug/routing/rules.py:705: in compile
    self._build = self._compile_builder(False).__get__(self, None)
/opt/hostedtoolcache/Python/3.12.0/x64/lib/python3.12/site-packages/werkzeug/routing/rules.py:761: in _compile_builder
    dom_parts = _parts(dom_ops)
/opt/hostedtoolcache/Python/3.12.0/x64/lib/python3.12/site-packages/werkzeug/routing/rules.py:751: in _parts
    parts = parts or [ast.Str("")]
/opt/hostedtoolcache/Python/3.12.0/x64/lib/python3.12/ast.py:584: in _new
    warnings._deprecated(
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

name = 'ast.Str'
message = '{name} is deprecated and will be removed in Python {remove}; use ast.Constant instead'

    def _deprecated(name, message=_DEPRECATED_MSG, *, remove, _version=sys.version_info):
        """Warn that *name* is deprecated or should be removed.
    
        RuntimeError is raised if *remove* specifies a major/minor tuple older than
        the current Python version or the same version but past the alpha.
    
        The *message* argument is formatted with *name* and *remove* as a Python
        version (e.g. "3.11").
    
        """
        remove_formatted = f"{remove[0]}.{remove[1]}"
        if (_version[:2] > remove) or (_version[:2] == remove and _version[3] != "alpha"):
            msg = f"{name!r} was slated for removal after Python {remove_formatted} alpha"
            raise RuntimeError(msg)
        else:
            msg = message.format(name=name, remove=remove_formatted)
>           warn(msg, DeprecationWarning, stacklevel=3)
E           DeprecationWarning: ast.Str is deprecated and will be removed in Python 3.14; use ast.Constant instead

/opt/hostedtoolcache/Python/3.12.0/x64/lib/python3.12/warnings.py:529: DeprecationWarning

Check failure on line 1 in RebarTest

See this annotation in the file changed.

@github-actions github-actions / JUnit Report python3.12 marshmallow==3.17.* flask=='2.2.*' werkzeug=='2.2.*'

RebarTest.test_default_authentication

DeprecationWarning: 'pkgutil.get_loader' is deprecated and slated for removal in Python 3.14; use importlib.util.find_spec() instead
Raw output
self = <tests.test_rebar.RebarTest testMethod=test_default_authentication>

    def test_default_authentication(self):
        rebar = Rebar()
        registry = rebar.create_handler_registry()
        register_default_authenticator(registry)
        register_endpoint(registry)
>       app = create_rebar_app(rebar)

tests/test_rebar.py:173: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
tests/test_rebar.py:109: in create_rebar_app
    app = Flask("RebarTest")
/opt/hostedtoolcache/Python/3.12.0/x64/lib/python3.12/site-packages/flask/app.py:566: in __init__
    super().__init__(
/opt/hostedtoolcache/Python/3.12.0/x64/lib/python3.12/site-packages/flask/scaffold.py:112: in __init__
    root_path = get_root_path(self.import_name)
/opt/hostedtoolcache/Python/3.12.0/x64/lib/python3.12/site-packages/flask/helpers.py:611: in get_root_path
    loader = pkgutil.get_loader(import_name)
/opt/hostedtoolcache/Python/3.12.0/x64/lib/python3.12/pkgutil.py:273: in get_loader
    warnings._deprecated("pkgutil.get_loader",
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

name = 'pkgutil.get_loader'
message = '{name!r} is deprecated and slated for removal in Python {remove}; use importlib.util.find_spec() instead'

    def _deprecated(name, message=_DEPRECATED_MSG, *, remove, _version=sys.version_info):
        """Warn that *name* is deprecated or should be removed.
    
        RuntimeError is raised if *remove* specifies a major/minor tuple older than
        the current Python version or the same version but past the alpha.
    
        The *message* argument is formatted with *name* and *remove* as a Python
        version (e.g. "3.11").
    
        """
        remove_formatted = f"{remove[0]}.{remove[1]}"
        if (_version[:2] > remove) or (_version[:2] == remove and _version[3] != "alpha"):
            msg = f"{name!r} was slated for removal after Python {remove_formatted} alpha"
            raise RuntimeError(msg)
        else:
            msg = message.format(name=name, remove=remove_formatted)
>           warn(msg, DeprecationWarning, stacklevel=3)
E           DeprecationWarning: 'pkgutil.get_loader' is deprecated and slated for removal in Python 3.14; use importlib.util.find_spec() instead

/opt/hostedtoolcache/Python/3.12.0/x64/lib/python3.12/warnings.py:529: DeprecationWarning

Check failure on line 1 in RebarTest

See this annotation in the file changed.

@github-actions github-actions / JUnit Report python3.12 marshmallow==3.17.* flask=='2.2.*' werkzeug=='2.2.*'

RebarTest.test_default_authentication_w_multiple

DeprecationWarning: 'pkgutil.get_loader' is deprecated and slated for removal in Python 3.14; use importlib.util.find_spec() instead
Raw output
self = <tests.test_rebar.RebarTest testMethod=test_default_authentication_w_multiple>

    def test_default_authentication_w_multiple(self):
        rebar = Rebar()
        registry = rebar.create_handler_registry()
        register_multiple_authenticators(registry)
        register_endpoint(registry)
>       app = create_rebar_app(rebar)

tests/test_rebar.py:189: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
tests/test_rebar.py:109: in create_rebar_app
    app = Flask("RebarTest")
/opt/hostedtoolcache/Python/3.12.0/x64/lib/python3.12/site-packages/flask/app.py:566: in __init__
    super().__init__(
/opt/hostedtoolcache/Python/3.12.0/x64/lib/python3.12/site-packages/flask/scaffold.py:112: in __init__
    root_path = get_root_path(self.import_name)
/opt/hostedtoolcache/Python/3.12.0/x64/lib/python3.12/site-packages/flask/helpers.py:611: in get_root_path
    loader = pkgutil.get_loader(import_name)
/opt/hostedtoolcache/Python/3.12.0/x64/lib/python3.12/pkgutil.py:273: in get_loader
    warnings._deprecated("pkgutil.get_loader",
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

name = 'pkgutil.get_loader'
message = '{name!r} is deprecated and slated for removal in Python {remove}; use importlib.util.find_spec() instead'

    def _deprecated(name, message=_DEPRECATED_MSG, *, remove, _version=sys.version_info):
        """Warn that *name* is deprecated or should be removed.
    
        RuntimeError is raised if *remove* specifies a major/minor tuple older than
        the current Python version or the same version but past the alpha.
    
        The *message* argument is formatted with *name* and *remove* as a Python
        version (e.g. "3.11").
    
        """
        remove_formatted = f"{remove[0]}.{remove[1]}"
        if (_version[:2] > remove) or (_version[:2] == remove and _version[3] != "alpha"):
            msg = f"{name!r} was slated for removal after Python {remove_formatted} alpha"
            raise RuntimeError(msg)
        else:
            msg = message.format(name=name, remove=remove_formatted)
>           warn(msg, DeprecationWarning, stacklevel=3)
E           DeprecationWarning: 'pkgutil.get_loader' is deprecated and slated for removal in Python 3.14; use importlib.util.find_spec() instead

/opt/hostedtoolcache/Python/3.12.0/x64/lib/python3.12/warnings.py:529: DeprecationWarning

Check failure on line 1 in RebarTest

See this annotation in the file changed.

@github-actions github-actions / JUnit Report python3.12 marshmallow==3.17.* flask=='2.2.*' werkzeug=='2.2.*'

RebarTest.test_default_headers[<HeadersSchema(many=False)>-False]

DeprecationWarning: 'pkgutil.get_loader' is deprecated and slated for removal in Python 3.14; use importlib.util.find_spec() instead
Raw output
self = <tests.test_rebar.RebarTest testMethod=test_default_headers[<HeadersSchema(many=False)>-False]>
headers_def = <HeadersSchema(many=False)>, use_model = False

    @parametrize(
        "headers_def, use_model", [(HeadersSchema(), False), (HeadersModel, True)]
    )
    def test_default_headers(self, headers_def, use_model):
        rebar = Rebar()
        registry = rebar.create_handler_registry()
        registry.set_default_headers_schema(headers_def)
    
        @registry.handles(rule="/me", method="GET", response_body_schema=MeSchema())
        def get_me():
            name = (
                rebar.validated_headers.name
                if use_model
                else rebar.validated_headers["name"]
            )
            return {"user_name": name}
    
        @registry.handles(
            rule="/myself",
            method="GET",
            response_body_schema=DefaultResponseSchema(),
            # Let's make sure this can be overridden
            headers_schema=None,
        )
        def get_myself():
            return DEFAULT_RESPONSE
    
>       app = create_rebar_app(rebar)

tests/test_rebar.py:657: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
tests/test_rebar.py:109: in create_rebar_app
    app = Flask("RebarTest")
/opt/hostedtoolcache/Python/3.12.0/x64/lib/python3.12/site-packages/flask/app.py:566: in __init__
    super().__init__(
/opt/hostedtoolcache/Python/3.12.0/x64/lib/python3.12/site-packages/flask/scaffold.py:112: in __init__
    root_path = get_root_path(self.import_name)
/opt/hostedtoolcache/Python/3.12.0/x64/lib/python3.12/site-packages/flask/helpers.py:611: in get_root_path
    loader = pkgutil.get_loader(import_name)
/opt/hostedtoolcache/Python/3.12.0/x64/lib/python3.12/pkgutil.py:273: in get_loader
    warnings._deprecated("pkgutil.get_loader",
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

name = 'pkgutil.get_loader'
message = '{name!r} is deprecated and slated for removal in Python {remove}; use importlib.util.find_spec() instead'

    def _deprecated(name, message=_DEPRECATED_MSG, *, remove, _version=sys.version_info):
        """Warn that *name* is deprecated or should be removed.
    
        RuntimeError is raised if *remove* specifies a major/minor tuple older than
        the current Python version or the same version but past the alpha.
    
        The *message* argument is formatted with *name* and *remove* as a Python
        version (e.g. "3.11").
    
        """
        remove_formatted = f"{remove[0]}.{remove[1]}"
        if (_version[:2] > remove) or (_version[:2] == remove and _version[3] != "alpha"):
            msg = f"{name!r} was slated for removal after Python {remove_formatted} alpha"
            raise RuntimeError(msg)
        else:
            msg = message.format(name=name, remove=remove_formatted)
>           warn(msg, DeprecationWarning, stacklevel=3)
E           DeprecationWarning: 'pkgutil.get_loader' is deprecated and slated for removal in Python 3.14; use importlib.util.find_spec() instead

/opt/hostedtoolcache/Python/3.12.0/x64/lib/python3.12/warnings.py:529: DeprecationWarning

Check failure on line 1 in RebarTest

See this annotation in the file changed.

@github-actions github-actions / JUnit Report python3.12 marshmallow==3.17.* flask=='2.2.*' werkzeug=='2.2.*'

RebarTest.test_default_headers[<class 'tests-test_rebar-HeadersModel'>-True]

DeprecationWarning: 'pkgutil.get_loader' is deprecated and slated for removal in Python 3.14; use importlib.util.find_spec() instead
Raw output
self = <tests.test_rebar.RebarTest testMethod=test_default_headers[<class 'tests-test_rebar-HeadersModel'>-True]>
headers_def = <class 'tests.test_rebar.HeadersModel'>, use_model = True

    @parametrize(
        "headers_def, use_model", [(HeadersSchema(), False), (HeadersModel, True)]
    )
    def test_default_headers(self, headers_def, use_model):
        rebar = Rebar()
        registry = rebar.create_handler_registry()
        registry.set_default_headers_schema(headers_def)
    
        @registry.handles(rule="/me", method="GET", response_body_schema=MeSchema())
        def get_me():
            name = (
                rebar.validated_headers.name
                if use_model
                else rebar.validated_headers["name"]
            )
            return {"user_name": name}
    
        @registry.handles(
            rule="/myself",
            method="GET",
            response_body_schema=DefaultResponseSchema(),
            # Let's make sure this can be overridden
            headers_schema=None,
        )
        def get_myself():
            return DEFAULT_RESPONSE
    
>       app = create_rebar_app(rebar)

tests/test_rebar.py:657: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
tests/test_rebar.py:109: in create_rebar_app
    app = Flask("RebarTest")
/opt/hostedtoolcache/Python/3.12.0/x64/lib/python3.12/site-packages/flask/app.py:566: in __init__
    super().__init__(
/opt/hostedtoolcache/Python/3.12.0/x64/lib/python3.12/site-packages/flask/scaffold.py:112: in __init__
    root_path = get_root_path(self.import_name)
/opt/hostedtoolcache/Python/3.12.0/x64/lib/python3.12/site-packages/flask/helpers.py:611: in get_root_path
    loader = pkgutil.get_loader(import_name)
/opt/hostedtoolcache/Python/3.12.0/x64/lib/python3.12/pkgutil.py:273: in get_loader
    warnings._deprecated("pkgutil.get_loader",
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

name = 'pkgutil.get_loader'
message = '{name!r} is deprecated and slated for removal in Python {remove}; use importlib.util.find_spec() instead'

    def _deprecated(name, message=_DEPRECATED_MSG, *, remove, _version=sys.version_info):
        """Warn that *name* is deprecated or should be removed.
    
        RuntimeError is raised if *remove* specifies a major/minor tuple older than
        the current Python version or the same version but past the alpha.
    
        The *message* argument is formatted with *name* and *remove* as a Python
        version (e.g. "3.11").
    
        """
        remove_formatted = f"{remove[0]}.{remove[1]}"
        if (_version[:2] > remove) or (_version[:2] == remove and _version[3] != "alpha"):
            msg = f"{name!r} was slated for removal after Python {remove_formatted} alpha"
            raise RuntimeError(msg)
        else:
            msg = message.format(name=name, remove=remove_formatted)
>           warn(msg, DeprecationWarning, stacklevel=3)
E           DeprecationWarning: 'pkgutil.get_loader' is deprecated and slated for removal in Python 3.14; use importlib.util.find_spec() instead

/opt/hostedtoolcache/Python/3.12.0/x64/lib/python3.12/warnings.py:529: DeprecationWarning

Check failure on line 1 in RebarTest

See this annotation in the file changed.

@github-actions github-actions / JUnit Report python3.12 marshmallow==3.17.* flask=='2.2.*' werkzeug=='2.2.*'

RebarTest.test_default_mimetype_for_non_null_response_schema

DeprecationWarning: 'pkgutil.get_loader' is deprecated and slated for removal in Python 3.14; use importlib.util.find_spec() instead
Raw output
self = <tests.test_rebar.RebarTest testMethod=test_default_mimetype_for_non_null_response_schema>

    def test_default_mimetype_for_non_null_response_schema(self):
        rebar = Rebar()
        registry = rebar.create_handler_registry(default_mimetype="content/type")
    
        @registry.handles(
            rule="/me", method="DELETE", response_body_schema={204: m.Schema()}
        )
        def delete_me():
            return {}, 204
    
>       app = create_rebar_app(rebar)

tests/test_rebar.py:408: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
tests/test_rebar.py:109: in create_rebar_app
    app = Flask("RebarTest")
/opt/hostedtoolcache/Python/3.12.0/x64/lib/python3.12/site-packages/flask/app.py:566: in __init__
    super().__init__(
/opt/hostedtoolcache/Python/3.12.0/x64/lib/python3.12/site-packages/flask/scaffold.py:112: in __init__
    root_path = get_root_path(self.import_name)
/opt/hostedtoolcache/Python/3.12.0/x64/lib/python3.12/site-packages/flask/helpers.py:611: in get_root_path
    loader = pkgutil.get_loader(import_name)
/opt/hostedtoolcache/Python/3.12.0/x64/lib/python3.12/pkgutil.py:273: in get_loader
    warnings._deprecated("pkgutil.get_loader",
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

name = 'pkgutil.get_loader'
message = '{name!r} is deprecated and slated for removal in Python {remove}; use importlib.util.find_spec() instead'

    def _deprecated(name, message=_DEPRECATED_MSG, *, remove, _version=sys.version_info):
        """Warn that *name* is deprecated or should be removed.
    
        RuntimeError is raised if *remove* specifies a major/minor tuple older than
        the current Python version or the same version but past the alpha.
    
        The *message* argument is formatted with *name* and *remove* as a Python
        version (e.g. "3.11").
    
        """
        remove_formatted = f"{remove[0]}.{remove[1]}"
        if (_version[:2] > remove) or (_version[:2] == remove and _version[3] != "alpha"):
            msg = f"{name!r} was slated for removal after Python {remove_formatted} alpha"
            raise RuntimeError(msg)
        else:
            msg = message.format(name=name, remove=remove_formatted)
>           warn(msg, DeprecationWarning, stacklevel=3)
E           DeprecationWarning: 'pkgutil.get_loader' is deprecated and slated for removal in Python 3.14; use importlib.util.find_spec() instead

/opt/hostedtoolcache/Python/3.12.0/x64/lib/python3.12/warnings.py:529: DeprecationWarning

Check failure on line 1 in RebarTest

See this annotation in the file changed.

@github-actions github-actions / JUnit Report python3.12 marshmallow==3.17.* flask=='2.2.*' werkzeug=='2.2.*'

RebarTest.test_default_mimetype_for_null_response_schema

DeprecationWarning: 'pkgutil.get_loader' is deprecated and slated for removal in Python 3.14; use importlib.util.find_spec() instead
Raw output
self = <tests.test_rebar.RebarTest testMethod=test_default_mimetype_for_null_response_schema>

    def test_default_mimetype_for_null_response_schema(self):
        rebar = Rebar()
        registry = rebar.create_handler_registry(default_mimetype="content/type")
    
        @registry.handles(rule="/me", method="DELETE", response_body_schema={204: None})
        def delete_me():
            return None, 204
    
>       app = create_rebar_app(rebar)

tests/test_rebar.py:391: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
tests/test_rebar.py:109: in create_rebar_app
    app = Flask("RebarTest")
/opt/hostedtoolcache/Python/3.12.0/x64/lib/python3.12/site-packages/flask/app.py:566: in __init__
    super().__init__(
/opt/hostedtoolcache/Python/3.12.0/x64/lib/python3.12/site-packages/flask/scaffold.py:112: in __init__
    root_path = get_root_path(self.import_name)
/opt/hostedtoolcache/Python/3.12.0/x64/lib/python3.12/site-packages/flask/helpers.py:611: in get_root_path
    loader = pkgutil.get_loader(import_name)
/opt/hostedtoolcache/Python/3.12.0/x64/lib/python3.12/pkgutil.py:273: in get_loader
    warnings._deprecated("pkgutil.get_loader",
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

name = 'pkgutil.get_loader'
message = '{name!r} is deprecated and slated for removal in Python {remove}; use importlib.util.find_spec() instead'

    def _deprecated(name, message=_DEPRECATED_MSG, *, remove, _version=sys.version_info):
        """Warn that *name* is deprecated or should be removed.
    
        RuntimeError is raised if *remove* specifies a major/minor tuple older than
        the current Python version or the same version but past the alpha.
    
        The *message* argument is formatted with *name* and *remove* as a Python
        version (e.g. "3.11").
    
        """
        remove_formatted = f"{remove[0]}.{remove[1]}"
        if (_version[:2] > remove) or (_version[:2] == remove and _version[3] != "alpha"):
            msg = f"{name!r} was slated for removal after Python {remove_formatted} alpha"
            raise RuntimeError(msg)
        else:
            msg = message.format(name=name, remove=remove_formatted)
>           warn(msg, DeprecationWarning, stacklevel=3)
E           DeprecationWarning: 'pkgutil.get_loader' is deprecated and slated for removal in Python 3.14; use importlib.util.find_spec() instead

/opt/hostedtoolcache/Python/3.12.0/x64/lib/python3.12/warnings.py:529: DeprecationWarning

Check failure on line 1 in RebarTest

See this annotation in the file changed.

@github-actions github-actions / JUnit Report python3.12 marshmallow==3.17.* flask=='2.2.*' werkzeug=='2.2.*'

RebarTest.test_flask_response_instance_interop_body_does_not_match_schema[<class 'tests-test_rebar-FooUpdateModel'>]

DeprecationWarning: 'pkgutil.get_loader' is deprecated and slated for removal in Python 3.14; use importlib.util.find_spec() instead
Raw output
self = <tests.test_rebar.RebarTest testMethod=test_flask_response_instance_interop_body_does_not_match_schema[<class 'tests-test_rebar-FooUpdateModel'>]>
foo_update_cls = <class 'tests.test_rebar.FooUpdateModel'>

    @parametrize("foo_update_cls", [(FooUpdateSchema,), (FooUpdateModel,)])
    def test_flask_response_instance_interop_body_does_not_match_schema(
        self, foo_update_cls
    ):
        rebar = Rebar()
        registry = rebar.create_handler_registry()
        schema = foo_update_cls()
    
        @registry.handles(rule="/foo", method="PUT", response_body_schema=schema)
        def foo():
            return make_response(json.dumps({"does not match": "foo schema"}))
    
>       app = create_rebar_app(rebar)

tests/test_rebar.py:307: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
tests/test_rebar.py:109: in create_rebar_app
    app = Flask("RebarTest")
/opt/hostedtoolcache/Python/3.12.0/x64/lib/python3.12/site-packages/flask/app.py:566: in __init__
    super().__init__(
/opt/hostedtoolcache/Python/3.12.0/x64/lib/python3.12/site-packages/flask/scaffold.py:112: in __init__
    root_path = get_root_path(self.import_name)
/opt/hostedtoolcache/Python/3.12.0/x64/lib/python3.12/site-packages/flask/helpers.py:611: in get_root_path
    loader = pkgutil.get_loader(import_name)
/opt/hostedtoolcache/Python/3.12.0/x64/lib/python3.12/pkgutil.py:273: in get_loader
    warnings._deprecated("pkgutil.get_loader",
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

name = 'pkgutil.get_loader'
message = '{name!r} is deprecated and slated for removal in Python {remove}; use importlib.util.find_spec() instead'

    def _deprecated(name, message=_DEPRECATED_MSG, *, remove, _version=sys.version_info):
        """Warn that *name* is deprecated or should be removed.
    
        RuntimeError is raised if *remove* specifies a major/minor tuple older than
        the current Python version or the same version but past the alpha.
    
        The *message* argument is formatted with *name* and *remove* as a Python
        version (e.g. "3.11").
    
        """
        remove_formatted = f"{remove[0]}.{remove[1]}"
        if (_version[:2] > remove) or (_version[:2] == remove and _version[3] != "alpha"):
            msg = f"{name!r} was slated for removal after Python {remove_formatted} alpha"
            raise RuntimeError(msg)
        else:
            msg = message.format(name=name, remove=remove_formatted)
>           warn(msg, DeprecationWarning, stacklevel=3)
E           DeprecationWarning: 'pkgutil.get_loader' is deprecated and slated for removal in Python 3.14; use importlib.util.find_spec() instead

/opt/hostedtoolcache/Python/3.12.0/x64/lib/python3.12/warnings.py:529: DeprecationWarning

Check failure on line 1 in RebarTest

See this annotation in the file changed.

@github-actions github-actions / JUnit Report python3.12 marshmallow==3.17.* flask=='2.2.*' werkzeug=='2.2.*'

RebarTest.test_flask_response_instance_interop_body_does_not_match_schema[<class 'tests-test_rebar-FooUpdateSchema'>]

DeprecationWarning: 'pkgutil.get_loader' is deprecated and slated for removal in Python 3.14; use importlib.util.find_spec() instead
Raw output
self = <tests.test_rebar.RebarTest testMethod=test_flask_response_instance_interop_body_does_not_match_schema[<class 'tests-test_rebar-FooUpdateSchema'>]>
foo_update_cls = <class 'tests.test_rebar.FooUpdateSchema'>

    @parametrize("foo_update_cls", [(FooUpdateSchema,), (FooUpdateModel,)])
    def test_flask_response_instance_interop_body_does_not_match_schema(
        self, foo_update_cls
    ):
        rebar = Rebar()
        registry = rebar.create_handler_registry()
        schema = foo_update_cls()
    
        @registry.handles(rule="/foo", method="PUT", response_body_schema=schema)
        def foo():
            return make_response(json.dumps({"does not match": "foo schema"}))
    
>       app = create_rebar_app(rebar)

tests/test_rebar.py:307: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
tests/test_rebar.py:109: in create_rebar_app
    app = Flask("RebarTest")
/opt/hostedtoolcache/Python/3.12.0/x64/lib/python3.12/site-packages/flask/app.py:566: in __init__
    super().__init__(
/opt/hostedtoolcache/Python/3.12.0/x64/lib/python3.12/site-packages/flask/scaffold.py:112: in __init__
    root_path = get_root_path(self.import_name)
/opt/hostedtoolcache/Python/3.12.0/x64/lib/python3.12/site-packages/flask/helpers.py:611: in get_root_path
    loader = pkgutil.get_loader(import_name)
/opt/hostedtoolcache/Python/3.12.0/x64/lib/python3.12/pkgutil.py:273: in get_loader
    warnings._deprecated("pkgutil.get_loader",
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

name = 'pkgutil.get_loader'
message = '{name!r} is deprecated and slated for removal in Python {remove}; use importlib.util.find_spec() instead'

    def _deprecated(name, message=_DEPRECATED_MSG, *, remove, _version=sys.version_info):
        """Warn that *name* is deprecated or should be removed.
    
        RuntimeError is raised if *remove* specifies a major/minor tuple older than
        the current Python version or the same version but past the alpha.
    
        The *message* argument is formatted with *name* and *remove* as a Python
        version (e.g. "3.11").
    
        """
        remove_formatted = f"{remove[0]}.{remove[1]}"
        if (_version[:2] > remove) or (_version[:2] == remove and _version[3] != "alpha"):
            msg = f"{name!r} was slated for removal after Python {remove_formatted} alpha"
            raise RuntimeError(msg)
        else:
            msg = message.format(name=name, remove=remove_formatted)
>           warn(msg, DeprecationWarning, stacklevel=3)
E           DeprecationWarning: 'pkgutil.get_loader' is deprecated and slated for removal in Python 3.14; use importlib.util.find_spec() instead

/opt/hostedtoolcache/Python/3.12.0/x64/lib/python3.12/warnings.py:529: DeprecationWarning

Check failure on line 1 in RebarTest

See this annotation in the file changed.

@github-actions github-actions / JUnit Report python3.12 marshmallow==3.17.* flask=='2.2.*' werkzeug=='2.2.*'

RebarTest.test_flask_response_instance_interop_body_matches_schema[<class 'tests-test_rebar-FooUpdateModel'>]

DeprecationWarning: 'pkgutil.get_loader' is deprecated and slated for removal in Python 3.14; use importlib.util.find_spec() instead
Raw output
self = <tests.test_rebar.RebarTest testMethod=test_flask_response_instance_interop_body_matches_schema[<class 'tests-test_rebar-FooUpdateModel'>]>
foo_update_cls = <class 'tests.test_rebar.FooUpdateModel'>

    @parametrize("foo_update_cls", [(FooUpdateSchema,), (FooUpdateModel,)])
    def test_flask_response_instance_interop_body_matches_schema(self, foo_update_cls):
        rebar = Rebar()
        registry = rebar.create_handler_registry()
        schema = foo_update_cls()
    
        @registry.handles(rule="/foo", method="PUT", response_body_schema=schema)
        def foo():
            return make_response((json.dumps({"name": "foo"}), {"foo": "bar"}))
    
>       app = create_rebar_app(rebar)

tests/test_rebar.py:290: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
tests/test_rebar.py:109: in create_rebar_app
    app = Flask("RebarTest")
/opt/hostedtoolcache/Python/3.12.0/x64/lib/python3.12/site-packages/flask/app.py:566: in __init__
    super().__init__(
/opt/hostedtoolcache/Python/3.12.0/x64/lib/python3.12/site-packages/flask/scaffold.py:112: in __init__
    root_path = get_root_path(self.import_name)
/opt/hostedtoolcache/Python/3.12.0/x64/lib/python3.12/site-packages/flask/helpers.py:611: in get_root_path
    loader = pkgutil.get_loader(import_name)
/opt/hostedtoolcache/Python/3.12.0/x64/lib/python3.12/pkgutil.py:273: in get_loader
    warnings._deprecated("pkgutil.get_loader",
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

name = 'pkgutil.get_loader'
message = '{name!r} is deprecated and slated for removal in Python {remove}; use importlib.util.find_spec() instead'

    def _deprecated(name, message=_DEPRECATED_MSG, *, remove, _version=sys.version_info):
        """Warn that *name* is deprecated or should be removed.
    
        RuntimeError is raised if *remove* specifies a major/minor tuple older than
        the current Python version or the same version but past the alpha.
    
        The *message* argument is formatted with *name* and *remove* as a Python
        version (e.g. "3.11").
    
        """
        remove_formatted = f"{remove[0]}.{remove[1]}"
        if (_version[:2] > remove) or (_version[:2] == remove and _version[3] != "alpha"):
            msg = f"{name!r} was slated for removal after Python {remove_formatted} alpha"
            raise RuntimeError(msg)
        else:
            msg = message.format(name=name, remove=remove_formatted)
>           warn(msg, DeprecationWarning, stacklevel=3)
E           DeprecationWarning: 'pkgutil.get_loader' is deprecated and slated for removal in Python 3.14; use importlib.util.find_spec() instead

/opt/hostedtoolcache/Python/3.12.0/x64/lib/python3.12/warnings.py:529: DeprecationWarning