]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/boost/libs/python/test/test_builtin_converters.py
update sources to v12.2.3
[ceph.git] / ceph / src / boost / libs / python / test / test_builtin_converters.py
index fb3c55c1c79f399f4438bf8d963a232031f127dd..e612ed23df39c1aaf148b5bfc74b15befa55547a 100644 (file)
@@ -77,7 +77,7 @@ False
     test unsigned long values which don't fit in a signed long.
     strip any 'L' characters in case the platform has > 32 bit longs
 
->>> hex(rewrap_value_unsigned_long(0x80000001L)).replace('L','')
+>>> hex(rewrap_value_unsigned_long(long(0x80000001))).replace('L','')
 '0x80000001'
 
 >>> rewrap_value_long_long(42) == 42
@@ -136,6 +136,9 @@ True
 >>> print(rewrap_value_wstring(u'yo, wassup?'))
 yo, wassup?
 
+>>> print(rewrap_value_wstring(u'\U0001f4a9'))
+\U0001f4a9
+
    test that overloading on unicode works:
 
 >>> print(rewrap_value_string(u'yo, wassup?'))
@@ -283,6 +286,10 @@ Check that classic classes also work
 >>> assert return_null_handle() is None
 """
 
+import sys
+if (sys.version_info.major >= 3):
+    long = int
+
 def run(args = None):
     import sys
     import doctest