X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=ceph%2Fsrc%2Fboost%2Flibs%2Fpython%2Ftest%2Ftest_builtin_converters.py;h=e612ed23df39c1aaf148b5bfc74b15befa55547a;hb=b32b81446b3b05102be0267e79203f59329c1d97;hp=fb3c55c1c79f399f4438bf8d963a232031f127dd;hpb=215dd7151453fae88e6f968c975b6ce309d42dcf;p=ceph.git diff --git a/ceph/src/boost/libs/python/test/test_builtin_converters.py b/ceph/src/boost/libs/python/test/test_builtin_converters.py index fb3c55c1c..e612ed23d 100644 --- a/ceph/src/boost/libs/python/test/test_builtin_converters.py +++ b/ceph/src/boost/libs/python/test/test_builtin_converters.py @@ -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