It gives me this message:
Traceback (most recent call last):
File "C:\Users\simon\anaconda3\lib\site-packages\ddt.py", line 182, in wrapper
return func(self, *args, **kwargs)
File "C:/Users/simon/Desktop/loren/eser/66/test.py", line 45, in test
tree = tree.BinaryTree.fromList(lista)
UnboundLocalError: local variable 'tree' referenced before assignment
I tried to fix it but I'm not quite able to do that (it gives me another type of error), I think it's probably due to inappropriate naming of imports/parameters used in the test.py. But again I'm not sure if what I'm saying is correct.
(I already tried to substitute it with the original copy)
Traceback (most recent call last):
File "C:\Users\simon\anaconda3\lib\site-packages\ddt.py", line 182, in wrapper
return func(self, *args, **kwargs)
File "C:/Users/simon/Desktop/loren/eser/66/test.py", line 45, in test
tree = tree.BinaryTree.fromList(lista)
UnboundLocalError: local variable 'tree' referenced before assignment
I tried to fix it but I'm not quite able to do that (it gives me another type of error), I think it's probably due to inappropriate naming of imports/parameters used in the test.py. But again I'm not sure if what I'm saying is correct.
(I already tried to substitute it with the original copy)