Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
P
Pyston
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Boxiang Sun
Pyston
Commits
2f6fc405
Commit
2f6fc405
authored
Mar 09, 2015
by
Chris Toshok
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add a small test (based on fasta.py)
parent
9c1e684b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
0 deletions
+20
-0
test/tests/no-softspace.py
test/tests/no-softspace.py
+20
-0
No files found.
test/tests/no-softspace.py
0 → 100644
View file @
2f6fc405
import
sys
import
hashlib
class
HashOutput
:
def
__init__
(
self
):
self
.
m
=
hashlib
.
md5
()
def
write
(
self
,
string
):
self
.
m
.
update
(
string
)
def
md5hash
(
self
):
return
self
.
m
.
hexdigest
()
hash_output
=
HashOutput
()
old_stdout
=
sys
.
stdout
sys
.
stdout
=
hash_output
print
"Hello World!"
sys
.
stdout
=
old_stdout
print
hash_output
.
md5hash
()
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