Skip to content

Commit

Permalink
bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
chfw committed Nov 18, 2014
1 parent eb040b3 commit 707b0d1
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
6 changes: 6 additions & 0 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,12 @@ Usage::
4.0 3.0 2.0
=== === ===

.. testcode::
:hide:

>>> import os
>>> os.unlink("myfile.rst")


Dependencies
============
Expand Down
5 changes: 4 additions & 1 deletion tests/test_io.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
class TestIO:
def setUp(self):
self.testfile = "testfile.txt"
text.TABLEFMT = "simple"
def test_normal_usage(self):
content = [
[1, 2, 3],
Expand All @@ -29,7 +30,8 @@ def test_normal_usage(self):
4 588 6
7 8 999
- --- ---""").strip('\n')
print(written_content)
print(written_content+"x")
print(content+"x")
assert written_content == content

def tearDown(self):
Expand All @@ -40,6 +42,7 @@ def tearDown(self):
class TestStream:
def setUp(self):
self.testfile = StringIO()
text.TABLEFMT = "simple"
def test_normal_usage(self):
content = [
[1, 2, 3],
Expand Down

0 comments on commit 707b0d1

Please sign in to comment.