Skip to content

Conversation

@pepeleduin
Copy link
Contributor

When running pytest there is a TypeError: unsupported operand type(s) for -: 'NoneType' and 'int'. This is because there is no checking of the content of variables before doing operations with integers.

@CLAassistant
Copy link

CLAassistant commented Aug 26, 2025

CLA assistant check
All committers have signed the CLA.

@CLAassistant
Copy link

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.


Leduin José Cuenca Macas seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account.
You have signed the CLA already but the status is still pending? Let us recheck it.

@pchtsp
Copy link
Collaborator

pchtsp commented Sep 1, 2025

thanks, can you sign the license?

@pepeleduin
Copy link
Contributor Author

Done!

@pchtsp
Copy link
Collaborator

pchtsp commented Sep 18, 2025

I think you should raise a PulpError if the variable has the value None, because it should fail. With your current modification the test would pass when v.varValue is None.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants