Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
git2
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lvzhengyang
git2
Commits
702c3bf7
Commit
702c3bf7
authored
Jan 04, 2013
by
Carlos Martín Nieto
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
clar: make it compatible with python3
parent
1d5d4186
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
tests-clar/generate.py
+3
-3
No files found.
tests-clar/generate.py
View file @
702c3bf7
...
@@ -154,7 +154,7 @@ class TestSuite(object):
...
@@ -154,7 +154,7 @@ class TestSuite(object):
cache
=
{}
cache
=
{}
try
:
try
:
fp
=
open
(
path
)
fp
=
open
(
path
,
'rb'
)
cache
=
pickle
.
load
(
fp
)
cache
=
pickle
.
load
(
fp
)
fp
.
close
()
fp
.
close
()
except
IOError
:
except
IOError
:
...
@@ -164,7 +164,7 @@ class TestSuite(object):
...
@@ -164,7 +164,7 @@ class TestSuite(object):
def
save_cache
(
self
):
def
save_cache
(
self
):
path
=
os
.
path
.
join
(
self
.
path
,
'.clarcache'
)
path
=
os
.
path
.
join
(
self
.
path
,
'.clarcache'
)
with
open
(
path
,
'w'
)
as
cache
:
with
open
(
path
,
'w
b
'
)
as
cache
:
pickle
.
dump
(
self
.
modules
,
cache
)
pickle
.
dump
(
self
.
modules
,
cache
)
def
load
(
self
,
force
=
False
):
def
load
(
self
,
force
=
False
):
...
@@ -233,5 +233,5 @@ if __name__ == '__main__':
...
@@ -233,5 +233,5 @@ if __name__ == '__main__':
suite
.
load
(
options
.
force
)
suite
.
load
(
options
.
force
)
suite
.
disable
(
options
.
excluded
)
suite
.
disable
(
options
.
excluded
)
if
suite
.
write
():
if
suite
.
write
():
print
"Written `clar.suite` (
%
d suites)"
%
len
(
suite
.
modules
)
print
(
"Written `clar.suite` (
%
d suites)"
%
len
(
suite
.
modules
)
)
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