From 29c1c601433556ad2d7dc945f10b964f3761ee56 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adrien=20Verg=C3=A9?= Date: Fri, 4 Mar 2016 12:15:26 +0100 Subject: [PATCH] Tests: Use absolute path to spec examples --- tests/test_spec_examples.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/test_spec_examples.py b/tests/test_spec_examples.py index 8d18cde..b23ad56 100644 --- a/tests/test_spec_examples.py +++ b/tests/test_spec_examples.py @@ -121,7 +121,8 @@ conf_overrides = { 'example-10.2': ('indentation: {indent-sequences: no}\n'), } -files = os.listdir('tests/yaml-1.2-spec-examples') +files = os.listdir(os.path.join(os.path.dirname(os.path.realpath(__file__)), + 'yaml-1.2-spec-examples')) assert len(files) == 132