diff options
| author | Anthon van der Neut <anthon@mnt.org> | 2016-01-22 21:22:33 +0100 |
|---|---|---|
| committer | Anthon van der Neut <anthon@mnt.org> | 2016-01-22 21:22:33 +0100 |
| commit | da73c8aa0d8db3d0f54d88740a0f7f621ac563df (patch) | |
| tree | 7cbbfec9780ab9a33f09926e91cab343be049cdb /_test/lib/test_build.py | |
| parent | a5f03a5e66daaea85af2730fa961d11c62d8cf17 (diff) | |
| download | ruamel.yaml-da73c8aa0d8db3d0f54d88740a0f7f621ac563df.tar.gz | |
moved test to _test to prevent setuptools from including test/test_*.py0.10.17
although the package dirs were explicitly specified. This used to
lead to half included, non-working test directory contents that have
no place in a distribution. This fixes issue #17
Diffstat (limited to '_test/lib/test_build.py')
| -rw-r--r-- | _test/lib/test_build.py | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/_test/lib/test_build.py b/_test/lib/test_build.py new file mode 100644 index 0000000..901e8ed --- /dev/null +++ b/_test/lib/test_build.py @@ -0,0 +1,10 @@ + +if __name__ == '__main__': + import sys, os, distutils.util + build_lib = 'build/lib' + build_lib_ext = os.path.join('build', 'lib.%s-%s' % (distutils.util.get_platform(), sys.version[0:3])) + sys.path.insert(0, build_lib) + sys.path.insert(0, build_lib_ext) + import test_yaml, test_appliance + test_appliance.run(test_yaml) + |
