chiark
/
gitweb
/
~mdw
/
disorder
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
121e365
)
normalize recorded filenames so files.py passes
author
Richard Kettlewell
<rjk@greenend.org.uk>
Tue, 20 Nov 2007 15:38:46 +0000
(15:38 +0000)
committer
Richard Kettlewell
<rjk@greenend.org.uk>
Tue, 20 Nov 2007 15:38:46 +0000
(15:38 +0000)
tests/dtest.py
patch
|
blob
|
blame
|
history
diff --git
a/tests/dtest.py
b/tests/dtest.py
index 39234069ed3861b417c31257b663a81ab51dcee9..dba7e353777695be0477fb2bb396456dfd16397f 100644
(file)
--- a/
tests/dtest.py
+++ b/
tests/dtest.py
@@
-2,7
+2,7
@@
"""Utility module used by tests"""
"""Utility module used by tests"""
-import os,os.path,subprocess,sys,disorder
+import os,os.path,subprocess,sys,disorder
,unicodedata
def copyfile(a,b):
"""copyfile(A, B)
def copyfile(a,b):
"""copyfile(A, B)
@@
-19,8
+19,10
@@
Make track with relative path S exist"""
os.makedirs(trackdir)
copyfile("%s/sounds/slap.ogg" % topsrcdir, trackpath)
# We record the tracks we created so they can be tested against
os.makedirs(trackdir)
copyfile("%s/sounds/slap.ogg" % topsrcdir, trackpath)
# We record the tracks we created so they can be tested against
- # server responses
- bits = s.split('/')
+ # server responses. We put them into NFC since that's what the server
+ # uses internally.
+ bits = unicodedata.normalize("NFC",
+ unicode(s, "UTF-8")).split('/')
dp = tracks
for d in bits [0:-1]:
dd = "%s/%s" % (dp, d)
dp = tracks
for d in bits [0:-1]:
dd = "%s/%s" % (dp, d)