Skip to content

Commit 7178a70

Browse files
tadeustefanseefeld
authored andcommitted
Fix a problem where test_builtin_converters.py is not being run (boostorg#94)
This was happening because the module docstring was not the first statement.
1 parent 36bbdde commit 7178a70

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

test/test_builtin_converters.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11
# Copyright David Abrahams 2004. Distributed under the Boost
22
# Software License, Version 1.0. (See accompanying
33
# 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
74
r"""
85
>>> from builtin_converters_ext import *
96
@@ -283,6 +280,10 @@
283280
>>> assert return_null_handle() is None
284281
"""
285282

283+
import sys
284+
if (sys.version_info.major >= 3):
285+
long = int
286+
286287
def run(args = None):
287288
import sys
288289
import doctest

0 commit comments

Comments
 (0)