From 6fe2079d2375f05926e1bc7126ff3bebed96ce62 Mon Sep 17 00:00:00 2001 From: Paul Brossier Date: Wed, 17 Feb 2010 15:16:11 +0000 Subject: [PATCH] tests/api/: only import os.path, use os.path.join --- tests/api/test_lolevel.py | 2 +- tests/api/test_pipe.py | 4 ++-- tests/api/test_pipe2.py | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/tests/api/test_lolevel.py b/tests/api/test_lolevel.py index 5e01e40..c508511 100644 --- a/tests/api/test_lolevel.py +++ b/tests/api/test_lolevel.py @@ -1,6 +1,6 @@ from timeside.tests.api import examples -import os +import os.path source= os.path.join (os.path.dirname(__file__), "../samples/guitar.wav") Decoder = examples.FileDecoder diff --git a/tests/api/test_pipe.py b/tests/api/test_pipe.py index 87ce4a7..9bf6d1b 100644 --- a/tests/api/test_pipe.py +++ b/tests/api/test_pipe.py @@ -4,8 +4,8 @@ from timeside.core import * from timeside.api import * from sys import stdout -import os -source=os.path.dirname(__file__) + "../samples/guitar.wav" +import os.path +source = os.path.join(os.path.dirname(__file__), "../samples/guitar.wav") print "Normalizing %s" % source decoder = examples.FileDecoder(source) diff --git a/tests/api/test_pipe2.py b/tests/api/test_pipe2.py index d34a1b0..d2116fc 100644 --- a/tests/api/test_pipe2.py +++ b/tests/api/test_pipe2.py @@ -3,8 +3,8 @@ from timeside.core import * from timeside.api import * from sys import stdout -import os -source=os.path.dirname(__file__) + "../samples/guitar.wav" +import os.path +source = os.path.join (os.path.dirname(__file__), "../samples/guitar.wav") print "Normalizing %s" % source decoder = examples.FileDecoder(source) -- 2.39.5