mikeizbicki / cmc-csci046

CMC's Data Structures and Algorithms Course Materials
55 stars 155 forks source link

Failing tests due to "process completed with exit code 1" #436

Closed baron-zeng closed 1 year ago

baron-zeng commented 1 year ago

Hi,

For HW1, there are no issues with the doctest and linter with my code. However, when I run the tests, the error shown below comes up:

Screen Shot 2023-01-30 at 1 58 02 PM

Does anyone know why this is?

Thanks, Baron

jbecker7 commented 1 year ago

Baron,

Line 23 contains the important information here:

./Fixme.py:46:15: E225 missing whitespace around operator

On line 46 of your code, you are missing whitespace around an operator such as

1. +
2. -
3. *
4. /
5. =

I believe this particular error is happening because GitHub is using more than just flake8 to lint the file. As such, even if you passed the flake8 linter, there's still a chance that you will have incorrect syntax. If you fix line 46 and recommit, you should be good to go.

baron-zeng commented 1 year ago

Hi Jonathan,

Thanks for your help. I implemented the changes, and all the test cases have passed. However, the badge still shows red and says that the tests have failed. Do you (or anyone else) know why this is?

Screen Shot 2023-01-30 at 2 43 41 PM

Screen Shot 2023-01-30 at 2 43 59 PM

It might have something to do with the annotations in the screenshot below.

Screen Shot 2023-01-30 at 2 44 37 PM

Many thanks, Baron