Skip to content
This repository was archived by the owner on Oct 1, 2025. It is now read-only.
This repository was archived by the owner on Oct 1, 2025. It is now read-only.

allmodules unit test confusion #96

@aaaaalbert

Description

@aaaaalbert

@Ashmita89 reports that on her Windows Vista machine, ut_seash_allmodules.py raises an exception when run as a standalone Python program, but still passes when run under utf.py despite no #pragma error declaration.

Shell transcript:

C:\Users\Ashmita\seash\RUNNABLE>python ut_seash_allmodules.py
- You can see available seash factoids using 'show factoids [number of factoids]
/all' command.

Enabled modules: factoids, geoip, modules, uploaddir, variables

Traceback (most recent call last):
  File "ut_seash_allmodules.py", line 26, in <module>
    seash.command_loop(commands)
  File "C:\Users\Ashmita\seash\RUNNABLE\seash.py", line 192, in command_loop
    seash_dictionary.command_dispatch(cmd_input, environment_dict)
  File "C:\Users\Ashmita\seash\RUNNABLE\seash_dictionary.py", line 2109, in comm
and_dispatch
    current_callback(input_dict.copy(), environment_dict)
  File "C:\Users\Ashmita\seash\RUNNABLE\modules\modules\command_callbacks.py", l
ine 89, in enable_module
    seash_modules.enable(seash_dictionary.seashcommanddict, modulename)
  File "C:\Users\Ashmita\seash\RUNNABLE\seash_modules.py", line 365, in enable
    raise seash_exceptions.UserError("Module is already enabled.")
seash_exceptions.UserError: Module is already enabled.


C:\Users\Ashmita\seash\RUNNABLE>python utf.py -f  ut_seash_allmodules.py
Testing module: seash
Now starting subprocess: ut_seash_subprocess.py
Generating user keys...
Generating owner key...
Writing config file...
Writing vessel dictionary...
Now running setup script: ut_seash_setup.py
        Running: ut_seash_setup.py                                  [ PASS ]
        Running: ut_seash_allmodules.py                             [ PASS ]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions