Uploaded image for project: 'Apache Cassandra'
  1. Apache Cassandra
  2. CASSANDRA-10541

cqlshlib tests cannot run on Windows

    XMLWordPrintableJSON

Details

    • Low

    Description

      If I try to run the cqlshlib tests on Windows, I got the following error:

      ======================================================================
      ERROR: Failure: AttributeError ('module' object has no attribute 'symlink')
      ----------------------------------------------------------------------
      Traceback (most recent call last):
      File "C:\Python27\lib\site-packages\nose\loader.py", line 414, in loadTestsFromName
      addr.filename, addr.module)
      File "C:\Python27\lib\site-packages\nose\importer.py", line 47, in importFromPath
      return self.importFromDir(dir_path, fqname)
      File "C:\Python27\lib\site-packages\nose\importer.py", line 94, in importFromDir
      mod = load_module(part_fqname, fh, filename, desc)
      File "[...]\pylib\cqlshlib\test_init_.py", line 17, in <module>
      from .cassconnect import create_test_db, remove_test_db
      File "[...]\pylib\cqlshlib\test\cassconnect.py", line 22, in <module>
      from .basecase import cql, cqlsh, cqlshlog, TEST_HOST, TEST_PORT, rundir
      File "[...]\pylib\cqlshlib\test\basecase.py", line 43, in <module>
      os.symlink(path_to_cqlsh, modulepath)
      AttributeError: 'module' object has no attribute 'symlink'

      ----------------------------------------------------------------------
      Ran 1 test in 0.002s

      FAILED (errors=1)

      The problem comes from the fact tha Windows has no support for symlinks.

      Attachments

        Issue Links

          Activity

            People

              pauloricardomg Paulo Motta
              blerer Benjamin Lerer
              Paulo Motta
              Jim Witschey
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: