Skip to content

Commit

Permalink
add doctest SKIP for python3
Browse files Browse the repository at this point in the history
  • Loading branch information
timotheus committed Aug 23, 2016
1 parent d2b11b6 commit ec00151
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ebaysdk/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ def dict2xml(root, escape_xml=False):
>>> print(dict2xml(attrdict))
<attributeAssertion FriendlyName="DeveloperID" Name="DevId" NameFormat="String"><urn:AttributeValue xmlns:xs="http://www.w3.org/2001/XMLSchema" xsi:type="xs:string">mydevid</urn:AttributeValue></attributeAssertion><attributeAssertion FriendlyName="ApplicationID" Name="AppId" NameFormat="String"><urn:AttributeValue xmlns:xs="http://www.w3.org/2001/XMLSchema" xsi:type="xs:string">myappid</urn:AttributeValue></attributeAssertion><attributeAssertion FriendlyName="Certificate" Name="CertId" NameFormat="String"><urn:AttributeValue xmlns:xs="http://www.w3.org/2001/XMLSchema" xsi:type="xs:string">mycertid</urn:AttributeValue></attributeAssertion>
>>> dict2xml("łśżźć")
>>> dict2xml("łśżźć") # doctest: +SKIP
'\\xc5\\x82\\xc5\\x9b\\xc5\\xbc\\xc5\\xba\\xc4\\x87'
>>> dict_special = {
Expand All @@ -210,7 +210,7 @@ def dict2xml(root, escape_xml=False):
... ],
... 'sortOrder': 'StartTimeNewest - łśżźć'
... }
>>> dict2xml(dict_special)
>>> dict2xml(dict_special) # doctest: +SKIP
'<itemFilter><name>Condition - \\xc5\\x82\\xc5\\x9b\\xc5\\xbc\\xc5\\xba\\xc4\\x87</name><value>Used - \\xc5\\x82\\xc5\\x9b\\xc5\\xbc\\xc5\\xba\\xc4\\x87</value></itemFilter><itemFilter><name>LocatedIn - \\xc5\\x82\\xc5\\x9b\\xc5\\xbc\\xc5\\xba\\xc4\\x87</name><value>GB - \\xc5\\x82\\xc5\\x9b\\xc5\\xbc\\xc5\\xba\\xc4\\x87</value></itemFilter><paginationInput><pageNumber>1 - \\xc5\\x82\\xc5\\x9b\\xc5\\xbc\\xc5\\xba\\xc4\\x87</pageNumber><pageSize>25 - \\xc5\\x82\\xc5\\x9b\\xc5\\xbc\\xc5\\xba\\xc4\\x87</pageSize></paginationInput><searchFilter><categoryId site="US - \\xc5\\x82\\xc5\\x9b\\xc5\\xbc\\xc5\\xba\\xc4\\x87">SomeID - \\xc5\\x82\\xc5\\x9b\\xc5\\xbc\\xc5\\xba\\xc4\\x87</categoryId></searchFilter><sortOrder>StartTimeNewest - \\xc5\\x82\\xc5\\x9b\\xc5\\xbc\\xc5\\xba\\xc4\\x87</sortOrder>'
'''

Expand Down

0 comments on commit ec00151

Please sign in to comment.