Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

I can't test properly with unittest. #103

Open
ZA0068 opened this issue Apr 23, 2022 · 0 comments
Open

I can't test properly with unittest. #103

ZA0068 opened this issue Apr 23, 2022 · 0 comments

Comments

@ZA0068
Copy link

ZA0068 commented Apr 23, 2022

I have a project that involves this Tello Python library.

Everything else works fine, except the test won't stop, despite it being completed regardless of success or failure.

I have to manually disable the test which is very tedious, and it will not work when firing multiple tests at once, because when once Tello object is created, it will not be destroyed and can't be called again twice.

This is error i get:

Stdout:
[WinError 10048] Normalt må en socket-adresse (protokol/netværksadresse/port) kun bruges én gang
Testing are done.

Stderr:
Traceback (most recent call last):
  File "c:\Users\zaina\OneDrive\Skoleopgaver\Robotteknologi\Bachelorprojekt\Source code\pytello\Arucodetector.py", line 57, in ConnectDrone
    self.SetDrone(tellopy.Tello())
  File "C:\Users\zaina\anaconda3\lib\site-packages\tellopy\_internal\tello.py", line 91, in __init__
    self.sock.bind(('', self.port))
OSError: [WinError 10048] Normalt må en socket-adresse (protokol/netværksadresse/port) kun bruges én gang

You can clearly see what i mean on that screenshot:
billede

Look at the blue lines I've made. These points out a nonterminating process that prevents re-instantiation of Tello Object.

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

No branches or pull requests

1 participant