CivicSpleen / ambry

A comprehensive data package manager
BSD 2-Clause "Simplified" License
4 stars 5 forks source link

Many tests are broken with NoSysPathError: No mapping to OS filesystem: build_log.txt #129

Closed nmb10 closed 8 years ago

nmb10 commented 8 years ago
py.test test/test_metadata/regression/test_ambry_93.py
ambry/bundle/bundle.py:670: in sync_in
    self.build_source_files.sync(BuildSourceFile.SYNC_DIR.FILE_TO_RECORD)
ambry/bundle/files.py:898: in sync
    self._bundle.logger.debug("   ftr {}".format(file_const))
ambry/bundle/bundle.py:478: in logger
    file_name = self.build_fs.getsyspath('build_log.txt')
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = MemoryFS(), path = 'build_log.txt', allow_none = False

    def getsyspath(self, path, allow_none=False):
        """Returns the system path (a path recognized by the OS) if one is present.

            If the path does not map to a system path (and `allow_none` is False)
            then a NoSysPathError exception is thrown.  Otherwise, the system
            path will be returned as a unicode string.

            :param path: a path within the filesystem
            :param allow_none: if True, this method will return None when there is no system path,

            :rtype: unicode

            """
        if not allow_none:
>           raise NoSysPathError(path=path)
E           NoSysPathError: No mapping to OS filesystem: build_log.txt