Skip to content

Commit

Permalink
replace init classes on python3
Browse files Browse the repository at this point in the history
  • Loading branch information
ArtemIsmagilov authored and tobixen committed Nov 21, 2024
1 parent a939937 commit fb079f1
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions tests/_test_absolute.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
import caldav


class TestRadicale(object):
class TestRadicale:
SUMMARIES = set(
(
"Godspeed You! Black Emperor at " "Cirque Royal / Koninklijk Circus",
Expand Down Expand Up @@ -35,7 +35,7 @@ def test_eventslist(self):
assert dtstart == self.DTSTART


class TestTryton(object):
class TestTryton:
def setup(self):
URL = "http://admin:admin@localhost:9080/caldav/Calendars/Test"
self.client = caldav.DAVClient(URL)
Expand Down
2 changes: 1 addition & 1 deletion tests/proxy.py
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ def handler(signo, frame):


def daemonize(logger):
class DevNull(object):
class DevNull:
def __init__(self):
self.fd = os.open("/dev/null", os.O_WRONLY)

Expand Down
4 changes: 2 additions & 2 deletions tests/test_caldav.py
Original file line number Diff line number Diff line change
Expand Up @@ -437,7 +437,7 @@
len(rfc6638_users) < 3,
reason="need at least three users in rfc6638_users to be set in order to run this test",
)
class TestScheduling(object):
class TestScheduling:
"""Testing support of RFC6638.
TODO: work in progress. Stalled a bit due to lack of proper testing accounts. I haven't managed to get this test to pass at any systems yet, but I believe the problem is not on the library side.
* icloud: cannot really test much with only one test account
Expand Down Expand Up @@ -554,7 +554,7 @@ def testInviteAndRespond(self):
## inbox/outbox?


class RepeatedFunctionalTestsBaseClass(object):
class RepeatedFunctionalTestsBaseClass:
"""This is a class with functional tests (tests that goes through
basic functionality and actively communicates with third parties)
that we want to repeat for all configured caldav_servers.
Expand Down

0 comments on commit fb079f1

Please sign in to comment.