Skip to content

testzip() method is documented but does not exist #137

@myers

Description

@myers

Describe the bug
Documentation (https://py7zr.readthedocs.io/en/latest/py7zr.html#py7zr.SevenZipFile.testzip) says there is a testzip() method on SevenZipFile that returns the name of the first corrupt file or None. There isn't. There is a test() method that return True if the file is not corrupt or False if it is

To Reproduce
Steps to reproduce the behavior:
(example)

  1. Run following code with python3.
    '
    import py7zr
    archive = py7zr.SevenZipFile('test.7z','w')
    archive.testzip()
    '
  2. see error

Expected behavior
Either add the method (which I think would be a good idea as that is what the zipfile module does) or correct the docs.

Environment (please complete the following information):

  • OS: Ubuntu Linux 20.04
  • Python 3.8
  • py7zr version: 0.7.1

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingdocumentationIssue on documentation

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions