Skip to content

test_rsync uses obsolete @py.test.mark #183

Description

@apteryks

Hello,

Attempting to test with Pytest 7.3.1, I see:

collecting ... collected 845 items / 1 error

==================================== ERRORS ====================================
____________________ ERROR collecting testing/test_rsync.py ____________________
testing/test_rsync.py:47: in <module>
    class TestRSync:
testing/test_rsync.py:159: in TestRSync
    @py.test.mark.skipif("sys.platform == 'win32' or getattr(os, '_name', '') == 'nt'")
E   AttributeError: module 'py' has no attribute 'test'
=========================== short test summary info ============================
ERROR testing/test_rsync.py - AttributeError: module 'py' has no attribute 't...
!!!!!!!!!!!!!!!!!!!! Interrupted: 1 error during collection !!!!!!!!!!!!!!!!!!!!
=============================== 1 error in 0.41s ===============================

sed 's/@py.test/@pytest/' fixes it.

Thank you!

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions