blob: 1730f0db13e658b99d23ecc8e37b509a0945f6f0 [file] [log] [blame]
Georg Brandlbb93d172009-03-31 00:33:15 +00001# Fictitious test runner for the project
2
3import sys, os
4
5if sys.version_info > (3,):
6 # copy test suite over to "build/lib" and convert it
7 from distutils.util import copydir_run_2to3
8 testroot = os.path.dirname(__file__)
9 newroot = os.path.join(testroot, '..', 'build/lib/test')
10 copydir_run_2to3(testroot, newroot)
11 # in the following imports, pick up the converted modules
12 sys.path[0] = newroot
13
14# run the tests here...
15
16from test_foo import FooTest
17
18import unittest
19unittest.main()