apple / ccs-caldavtester

CalDAV/CardDAV Testing Framework used by CalendarServer
https://www.calendarserver.org
Apache License 2.0
57 stars 36 forks source link

Python warnings #26

Open macosforgebot opened 11 years ago

macosforgebot commented 11 years ago

douglm@… originally submitted this as ticket:564


Seeing messages like this:

----- Running Tests from "scripts/tests/CalDAV/sharing-peruser-data.xml"... ----- 
...
    Test Suite: Different freebusy                            

/home/douglm/drop2/calendar/apple/CalDAVTester-dist/verifiers/propfindItems.py:152: FutureWarning: The behavior of this method will change in future versions.  Use specific 'len(elem)' or 'elem is not None' test instead.
  if not prop:
        Test: 1                                              [OK] 

/home/douglm/drop2/calendar/apple/CalDAVTester-dist/verifiers/postFreeBusy.py:47: FutureWarning: This search is broken in 1.3 and earlier, and will be fixed in a future version.  If you rely on the current behaviour, change it to './{urn:ietf:params:xml:ns:caldav}response/{urn:ietf:params:xml:ns:caldav}calendar-data'
  for calendar in tree.findall("/{urn:ietf:params:xml:ns:caldav}response/{urn:ietf:params:xml:ns:caldav}calendar-data"):
        Test: 2                                              [FAILED] 
macosforgebot commented 10 years ago

@wsanchez originally submitted this as comment:4:⁠ticket:564