Skip to content

Possible fix for your broken unittests #1573

@tblanarik

Description

@tblanarik

I don't know if you've come across this yet, but I think the following breaking change to pint is also responsible for your broken unittests:

You can be reasonably sure because the last test that succeeds (794) shows:

  • Successfully installed pint-0.18

while the first to break shows:

  • Successfully installed pint-0.19.1

In addition, the stacktrace shows this is happening while unpickling solar_13.p:

  File "C:\Users\jenkins\workspace\CE_gpkit_Push_unit_tests\buildnode\windows10x64\optimizer\cvxopt\docs\source\examples\breakdowns.py", line 11, in <module>
    sol = pickle.load(open(dirpath+"solar_13.p", "rb"))
  File "C:\Users\jenkins\workspace\CE_gpkit_Push_unit_tests\buildnode\windows10x64\optimizer\cvxopt\venv_jenkins\lib\site-packages\pint\util.py", line 429, in __setstate__
    self._d, self._one, self._non_int_type = state
ValueError: too many values to unpack (expected 3)

I haven't had a chance to look around the project much yet (I just started by trying to run the unittests), but it seems like the fix is maybe just to update rtd_requirements.txt to read:

pint == 0.18
adce

If/when I am confident, I can also submit a PR to that effect.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions