Skip to content

Commit

Permalink
add test case to reproduce #639
Browse files Browse the repository at this point in the history
  • Loading branch information
lanpa committed Nov 20, 2021
1 parent df666cf commit e390d89
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tests/test_writer.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,12 @@ def test_flush(self):
def test_auto_close(self):
pass

def test_reuse_writer_after_closed(self):
w = SummaryWriter()
w.close()
w.add_text("reuse writer", "dont reuse without creating a new writer", 0)


def test_writer(self):
with SummaryWriter() as writer:
sample_rate = 44100
Expand Down

0 comments on commit e390d89

Please sign in to comment.