Commit 6f7a1ba4 authored by Reinout van Rees's avatar Reinout van Rees

Added test case demonstrating #98 and #148

parent d7a6dba4
# -*- coding: utf-8 -*-
##############################################################################
#
# Copyright (c) 2004-2009 Zope Foundation and Contributors.
......@@ -1156,6 +1157,20 @@ because of the missing target file.
"""
def unicode_filename_doesnt_break_hash():
"""
Buildout's _dir_hash() used to break on non-ascii filenames.
>>> mkdir('héhé')
>>> write('héhé', 'héhé.py',
... '''
... print('Example filename from pyramid tests')
... ''')
>>> from zc.buildout.buildout import _dir_hash
>>> _dir_hash('héhé')
"""
def o_option_sets_offline():
"""
>>> print_(system(join(sample_buildout, 'bin', 'buildout')+' -vvo'), end='')
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment