Skip to content

Commit

Permalink
TST: fix expected exception
Browse files Browse the repository at this point in the history
  • Loading branch information
klauer committed Mar 8, 2023
1 parent d7116e5 commit a0f4931
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions krtc/tests/test_kerberos.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,9 @@
import kerberos
import pytest

from ..krtc import KerberosTicket


class FakeException(Exception):
...


def test_instantiate():
with pytest.raises(FakeException): # what will it actually raise?
with pytest.raises(kerberos.GSSError):
KerberosTicket("[email protected]")

0 comments on commit a0f4931

Please sign in to comment.