Replace OSError aliases with OSError in UVC test (#33673)

This commit is contained in:
Franck Nijhof 2020-04-05 02:21:47 +02:00 committed by GitHub
parent 262b01d632
commit 59f1a1be93
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -258,7 +258,7 @@ class TestUVC(unittest.TestCase):
"""Mock login.""" """Mock login."""
try: try:
responses.pop(0) responses.pop(0)
raise socket.error raise OSError
except IndexError: except IndexError:
pass pass