Issue #1 resolved

Empty leads to very obscure error

Alex Gaynor
created an issue

I accidentally tried to run tox on a project who's was an empty file, the error message I got was obscure:

Comments (4)

  1. Anthon van der Neut

    The obscure message cannot be viewed online anymore. Currently an empty (or comment only) gives:

    GLOB sdist-make: /data1/src/empty/
    Traceback (most recent call last):
      File "/data1/env/empty/bin/tox", line 9, in <module>
        load_entry_point('tox==1.6rc1', 'console_scripts', 'tox')()
      File "/data1/src/tox/tox/", line 26, in main
        retcode = Session(config).runcommand()
      File "/data1/src/tox/tox/", line 301, in runcommand
        return self.subcommand_test()
      File "/data1/src/tox/tox/", line 429, in subcommand_test
        sdist_path = self.sdist()
      File "/data1/src/tox/tox/", line 411, in sdist
        sdist_path = self._makesdist()
      File "/data1/src/tox/tox/", line 325, in _makesdist
        return self.config.distdir.listdir()[0]
      File "/data1/env/empty/local/lib/python2.7/site-packages/py/_path/", line 349, in listdir
        names = py.error.checked_call(os.listdir, self.strpath)
      File "/data1/env/empty/local/lib/python2.7/site-packages/py/", line 84, in checked_call
        raise cls("%s%r" % (func.__name__, args))
    py.error.ENOENT: [No such file or directory]: listdir('/data1/src/empty/.tox/dist',)
  2. Log in to comment