Skip to content

[BUG] ValueError issues during testing changes #725

@PredictiveManish

Description

@PredictiveManish

Describe the bug
When running tests the random seed generation is causing trouble ValueError: Seed must be between 0 and 2**32 - 1 Also it's not for the new test I am adding for #723 , I tested multiple other tests and this issue is same throughout.

Image

Expected behavior
It should be properly generating seeds under a certain range as described in this issue.

Code sample
If you've setup the repository

cd tests
pytests <test-file-name>

Operating system, python version, PyPortfolioOpt version
Windows 11, python@latest, PyPortfolioOpt@latest

Additional context
It's working when tried to run using
pytest test/<test-file-name> -p no:randomly
As -p no:randomly stops it to generate seeds randomly
Proof:
Image

As of now I don't know how to fix it, but will understand and solve the issue and submit a PR, if anyone else' have expertise please feel free to open a PR!!

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions