mirror of
https://github.com/boostorg/python.git
synced 2026-01-23 05:42:30 +00:00
fix builtin_converters test so it can work (BBv1 allowed the
duplication of main target names; BBv2 does not) [SVN r37216]
This commit is contained in:
@@ -57,7 +57,7 @@ char const* rewrap_value_mutable_cstring(char* x) { return x; }
|
||||
|
||||
object identity_(object x) { return x; }
|
||||
|
||||
BOOST_PYTHON_MODULE(builtin_converters)
|
||||
BOOST_PYTHON_MODULE(builtin_converters_ext)
|
||||
{
|
||||
def("get_type", get_type);
|
||||
def("return_null_handle", return_null_handle);
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
# Software License, Version 1.0. (See accompanying
|
||||
# file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
|
||||
r"""
|
||||
>>> from builtin_converters import *
|
||||
>>> from builtin_converters_ext import *
|
||||
|
||||
# Synthesize idendity functions in case long long not supported
|
||||
>>> if not 'rewrap_value_long_long' in dir():
|
||||
@@ -250,9 +250,9 @@ Check that classic classes also work
|
||||
def run(args = None):
|
||||
import sys
|
||||
import doctest
|
||||
import builtin_converters
|
||||
import builtin_converters_ext
|
||||
|
||||
if 'rewrap_value_long_long' in dir(builtin_converters):
|
||||
if 'rewrap_value_long_long' in dir(builtin_converters_ext):
|
||||
print 'LONG_LONG supported, testing...'
|
||||
else:
|
||||
print 'LONG_LONG not supported, skipping those tests...'
|
||||
|
||||
Reference in New Issue
Block a user