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

replace init classes on python3 #456

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 @@ -439,7 +439,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 @@ -556,7 +556,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