Skip to content

Upgrade Pytest version to 7.1 #6266

@akhildevelops

Description

@akhildevelops
  • I am on the latest Poetry version.
  • I have searched the issues of this repo and believe that this is not a duplicate.
  • If an exception occurs when executing a command, I executed it again in debug mode (-vvv option).
  • OS version and name: Ubuntu 22.04
  • Poetry version: 1.1.15

Issue

Running pytest (^5.2) on default poetry project gives error: TypeError: required field "lineno" missing from alias.

It got to do with bug in python 3.10 [https://github.com/pytest-dev/pytest/pull/8540].

There's a fix for pytest given in version ^6.0. Checked with latest pytest version 7.1 there's no issue.

It also makes sense to upgrade pytest as 5.2 dates back to Sep 2019

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/bugSomething isn't working as expected

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions