tests/fixtures/invalid_utf8.tar.gz missing in hgsubversion-1.5.tar.gz

Arfrever Frehtes Taifersar Arahesis avatarArfrever Frehtes Taifersar Arahesis created an issue

tests/fixtures/invalid_utf8.tar.gz is missing in hgsubversion-1.5.tar.gz available on PyPI.

It causes failure of test_fetch_command.TestBasicRepoLayout.test_invalid_message():

..................................................E...................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................
======================================================================
ERROR: test_invalid_message (test_fetch_command.TestBasicRepoLayout)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/tmp/hgsubversion-1.5/tests/test_fetch_command.py", line 195, in test_invalid_message
    repo = self._load_fixture_and_fetch('invalid_utf8.tar.gz')
  File "/tmp/hgsubversion-1.5/tests/test_util.py", line 382, in _load_fixture_and_fetch
    repo, repo_path = self.load_and_fetch(*args, **kwargs)
  File "/tmp/hgsubversion-1.5/tests/test_util.py", line 375, in load_and_fetch
    repo_path = self.load_repo_tarball(fixture_name)
  File "/tmp/hgsubversion-1.5/tests/test_util.py", line 324, in load_repo_tarball
    tarball = tarfile.open(os.path.join(FIXTURES, fixture_name))
  File "/usr/lib64/python2.6/tarfile.py", line 1653, in open
    return func(name, "r", fileobj, **kwargs)
  File "/usr/lib64/python2.6/tarfile.py", line 1715, in gzopen
    fileobj = bltn_open(name, mode + "b")
IOError: [Errno 2] No such file or directory: '/tmp/hgsubversion-1.5/tests/fixtures/invalid_utf8.tar.gz'

----------------------------------------------------------------------
Ran 646 tests in 1923.242s

FAILED (errors=1)

Comments (3)

  1. Arfrever Frehtes Taifersar Arahesis

    Probably this change would fix this issue:

    --- MANIFEST.in
    +++ MANIFEST.in
    @@ -1,2 +1,2 @@
     include Makefile hgsubversion/help/*.rst
    -recursive-include tests *.py *.sh *.svndump *.txt
    +recursive-include tests *.py *.sh *.svndump *.tar.gz *.txt
    
  2. Log in to comment
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.