Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
nexedi
cython
Commits
850c569f
Commit
850c569f
authored
Aug 21, 2009
by
Stefan Behnel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
make sure we do not break encoded scripts when extracting expected error messages in runtests.py
parent
ae51384f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
4 deletions
+11
-4
runtests.py
runtests.py
+11
-4
No files found.
runtests.py
View file @
850c569f
#!/usr/bin/python
import
os
,
sys
,
re
,
shutil
,
unittest
,
doctest
import
os
import
sys
import
re
import
codecs
import
shutil
import
unittest
import
doctest
WITH_CYTHON
=
True
...
...
@@ -237,9 +243,10 @@ class CythonCompileTestCase(unittest.TestCase):
def
split_source_and_output
(
self
,
directory
,
module
,
workdir
):
source_file
=
os
.
path
.
join
(
directory
,
module
)
+
'.pyx'
source_and_output
=
open
(
self
.
find_module_source_file
(
source_file
),
'rU'
)
out
=
open
(
os
.
path
.
join
(
workdir
,
module
+
'.pyx'
),
'w'
)
source_and_output
=
codecs
.
open
(
self
.
find_module_source_file
(
source_file
),
'rU'
,
'ISO-8859-1'
)
out
=
codecs
.
open
(
os
.
path
.
join
(
workdir
,
module
+
'.pyx'
),
'w'
,
'ISO-8859-1'
)
for
line
in
source_and_output
:
last_line
=
line
if
line
.
startswith
(
"_ERRORS"
):
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment