We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c4fe369 commit 664d443Copy full SHA for 664d443
1 file changed
test/test_builtin_converters.py
@@ -1,6 +1,9 @@
1
# Copyright David Abrahams 2004. Distributed under the Boost
2
# Software License, Version 1.0. (See accompanying
3
# file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
4
+import sys
5
+if (sys.version_info.major >= 3):
6
+ long = int
7
r"""
8
>>> from builtin_converters_ext import *
9
@@ -74,7 +77,7 @@
74
77
test unsigned long values which don't fit in a signed long.
75
78
strip any 'L' characters in case the platform has > 32 bit longs
76
79
->>> hex(rewrap_value_unsigned_long(0x80000001L)).replace('L','')
80
+>>> hex(rewrap_value_unsigned_long(long(0x80000001))).replace('L','')
81
'0x80000001'
82
83
>>> rewrap_value_long_long(42) == 42
0 commit comments