Skip to content

test_vsc_location (test.framework.general.GeneralTest) fails #2154

@opoplawski

Description

@opoplawski

I'm working on building Fedora rpms for easybuild packages. I'm getting the following test error:

ERROR [1.860s]: test_vsc_location (test.framework.general.GeneralTest)
Make sure location of imported vsc module is not the framework itself.
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/export/home/orion/redhat/python-easybuild-framework/easybuild-framework-easybuild-framework-v3.1.1/test/framework/general.py", line 53, in test_vsc_location
    vsc_loc = os.path.dirname(os.path.dirname(os.path.abspath(vsc.__file__)))
AttributeError: 'module' object has no attribute '__file__'

The vsc-base package does not install a init.py file in site-packages/vsc, I believe because it is a namespace package, so it doesn't not have a file attribute.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions