Skip to content

Commit

Permalink
Fix deprecation warning in test runner for Py3.7: file open mode 'U' …
Browse files Browse the repository at this point in the history
…is deprecated.
  • Loading branch information
scoder committed Jun 17, 2018
1 parent 2b3b9a6 commit 3464b14
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion runtests.py
Expand Up @@ -867,7 +867,7 @@ def source_files(self, workdir, module_name, file_list):

def split_source_and_output(self, test_directory, module, workdir):
source_file = self.find_module_source_file(os.path.join(test_directory, module) + '.pyx')
source_and_output = io_open(source_file, 'rU', encoding='ISO-8859-1')
source_and_output = io_open(source_file, 'r', encoding='ISO-8859-1')
error_writer = warnings_writer = None
try:
out = io_open(os.path.join(workdir, module + os.path.splitext(source_file)[1]),
Expand Down

0 comments on commit 3464b14

Please sign in to comment.