Commit 7a324f98 authored by Stefan Behnel's avatar Stefan Behnel

copy some more test files in pyregr tests

parent af6e2058
...@@ -338,10 +338,10 @@ list_unchanging_dir = memoize(lambda x: os.listdir(x)) ...@@ -338,10 +338,10 @@ list_unchanging_dir = memoize(lambda x: os.listdir(x))
@memoize @memoize
def _list_pyregr_data_files(test_directory): def _list_pyregr_data_files(test_directory):
splitext = os.path.splitext is_data_file = re.compile('(?:[.](txt|pem|db|html)|^bad.*[.]py)$').search
data_file_extensions = ('.txt', '.pem', '.db', '.html') return ['__init__.py'] + [
return [filename for filename in list_unchanging_dir(test_directory) filename for filename in list_unchanging_dir(test_directory)
if splitext(filename)[1] in data_file_extensions] + ['__init__.py'] if is_data_file(filename)]
def import_ext(module_name, file_path=None): def import_ext(module_name, file_path=None):
......
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