| Revision 311,
348 bytes
checked in by xi, 4 years ago
(diff) |
|
Minor fixes in the test subsystem to prevent failures in LibYAML bindings tests.
|
| Line | |
|---|
| 1 | |
|---|
| 2 | def main(): |
|---|
| 3 | import sys, os, distutils.util |
|---|
| 4 | build_lib = 'build/lib' |
|---|
| 5 | build_lib_ext = os.path.join('build', 'lib.%s-%s' % (distutils.util.get_platform(), sys.version[0:3])) |
|---|
| 6 | sys.path.insert(0, build_lib) |
|---|
| 7 | sys.path.insert(0, build_lib_ext) |
|---|
| 8 | import test_yaml |
|---|
| 9 | test_yaml.main('test_yaml') |
|---|
| 10 | |
|---|
| 11 | if __name__ == '__main__': |
|---|
| 12 | main() |
|---|
| 13 | |
|---|
Note: See
TracBrowser
for help on using the repository browser.