nspcc-dev / neofs-testcases

NeoFS integration testcases
GNU General Public License v3.0
3 stars 18 forks source link

Deprecated (3.14+) functions used #856

Closed roman-khimov closed 1 month ago

roman-khimov commented 2 months ago

Is your feature request related to a problem? Please describe.

I'm always frustrated when I see this in logs:

/Users/runner/work/neofs-node/neofs-node/neofs-testcases/venv.pytest/lib/python3.12/site-packages/_pytest/assertion/rewrite.py:965: DeprecationWarning: ast.Str is deprecated and will be removed in Python 3.14; use ast.Constant instead
  inlocs = ast.Compare(ast.Str(name.id), [ast.In()], [locs])
/Users/runner/work/neofs-node/neofs-node/neofs-testcases/venv.pytest/lib/python3.12/site-packages/_pytest/assertion/rewrite.py:968: DeprecationWarning: ast.Str is deprecated and will be removed in Python 3.14; use ast.Constant instead
  expr = ast.IfExp(test, self.display(name), ast.Str(name.id))
/Users/runner/work/neofs-node/neofs-node/neofs-testcases/venv.pytest/lib/python3.12/site-packages/_pytest/assertion/rewrite.py:1102: DeprecationWarning: ast.Str is deprecated and will be removed in Python 3.14; use ast.Constant instead
  syms.append(ast.Str(sym))
/Users/runner/work/neofs-node/neofs-node/neofs-testcases/venv.pytest/lib/python3.12/site-packages/_pytest/assertion/rewrite.py:1104: DeprecationWarning: ast.Str is deprecated and will be removed in Python 3.14; use ast.Constant instead
  expls.append(ast.Str(expl))
/Users/runner/work/neofs-node/neofs-node/neofs-testcases/venv.pytest/lib/python3.12/site-packages/_pytest/assertion/rewrite.py:817: DeprecationWarning: ast.Str is deprecated and will be removed in Python 3.14; use ast.Constant instead
  keys = [ast.Str(key) for key in current.keys()]
/Users/runner/work/neofs-node/neofs-node/neofs-testcases/venv.pytest/lib/python3.12/site-packages/_pytest/assertion/rewrite.py:927: DeprecationWarning: ast.Str is deprecated and will be removed in Python 3.14; use ast.Constant instead
  assertmsg = ast.Str("")
/Users/runner/work/neofs-node/neofs-node/neofs-testcases/venv.pytest/lib/python3.12/site-packages/_pytest/assertion/rewrite.py:929: DeprecationWarning: ast.Str is deprecated and will be removed in Python 3.14; use ast.Constant instead
  template = ast.BinOp(assertmsg, ast.Add(), ast.Str(explanation))
/Users/runner/work/neofs-node/neofs-node/neofs-testcases/venv.pytest/lib/python3.12/site-packages/_pytest/assertion/rewrite.py:941: DeprecationWarning: ast.NameConstant is deprecated and will be removed in Python 3.14; use ast.Constant instead
  clear = ast.Assign(variables, ast.NameConstant(None))
/Users/runner/work/neofs-node/neofs-node/neofs-testcases/venv.pytest/lib/python3.12/site-packages/_pytest/assertion/rewrite.py:683: DeprecationWarning: ast.Str is deprecated and will be removed in Python 3.14; use ast.Constant instead
  and isinstance(item.value, ast.Str)
/Users/runner/work/neofs-node/neofs-node/neofs-testcases/venv.pytest/lib/python3.12/site-packages/_pytest/assertion/rewrite.py:685: DeprecationWarning: Attribute s is deprecated and will be removed in Python 3.14; use value instead
  doc = item.value.s

Describe the solution you'd like

Fix it.

evgeniiz321 commented 1 month ago

fixed by https://github.com/nspcc-dev/neofs-testcases/pull/865