Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upRecursionError: maximum recursion depth exceeded while calling a Python object when running simple UnitTest due to GitPython unittests also being included #1049
Comments
Maybe there is more to it, but should I expect the code above to run if pasted into a python file inside of the GitPython repository, and run with python 3.8.2? It cannot find 'TestCase'. |
No this is a test case taken from my project, so you should need to create a new project which uses GitPython, create a test case in there and invoke it. You might need some additional import statements as used in normal unittesting like I have updated my example. |
Thank you! |
While writing a unittest for a framework I ran into RecursionErrors:
I was able to reproduce it with this minimal test case:
If I run above example like:
As soon as I remove the line that actually commits the recursion errors disappear so I am I guessing some uncaught exception is thrown somewhere when doing a commit.