Skip to content

Commit fb079f1

Browse files
ArtemIsmagilovtobixen
authored andcommitted
replace init classes on python3
1 parent a939937 commit fb079f1

3 files changed

Lines changed: 5 additions & 5 deletions

File tree

tests/_test_absolute.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
import caldav
55

66

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

3737

38-
class TestTryton(object):
38+
class TestTryton:
3939
def setup(self):
4040
URL = "http://admin:admin@localhost:9080/caldav/Calendars/Test"
4141
self.client = caldav.DAVClient(URL)

tests/proxy.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,7 @@ def handler(signo, frame):
248248

249249

250250
def daemonize(logger):
251-
class DevNull(object):
251+
class DevNull:
252252
def __init__(self):
253253
self.fd = os.open("/dev/null", os.O_WRONLY)
254254

tests/test_caldav.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -437,7 +437,7 @@
437437
len(rfc6638_users) < 3,
438438
reason="need at least three users in rfc6638_users to be set in order to run this test",
439439
)
440-
class TestScheduling(object):
440+
class TestScheduling:
441441
"""Testing support of RFC6638.
442442
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.
443443
* icloud: cannot really test much with only one test account
@@ -554,7 +554,7 @@ def testInviteAndRespond(self):
554554
## inbox/outbox?
555555

556556

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

0 commit comments

Comments
 (0)