From 7178a70176fe68cb7e470ca53ab47075e0106a70 Mon Sep 17 00:00:00 2001 From: Tadeu Manoel Date: Wed, 14 Dec 2016 10:54:37 -0200 Subject: [PATCH] Fix a problem where test_builtin_converters.py is not being run (#94) This was happening because the module docstring was not the first statement. --- test/test_builtin_converters.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/test/test_builtin_converters.py b/test/test_builtin_converters.py index fb3c55c1..5adabcb8 100644 --- a/test/test_builtin_converters.py +++ b/test/test_builtin_converters.py @@ -1,9 +1,6 @@ # Copyright David Abrahams 2004. Distributed under the Boost # Software License, Version 1.0. (See accompanying # file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) -import sys -if (sys.version_info.major >= 3): - long = int r""" >>> from builtin_converters_ext import * @@ -283,6 +280,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