Skip to content

Commit

Permalink
Release 2.4.1 (#649)
Browse files Browse the repository at this point in the history
* prepare for release

* add test case to reproduce #639

* fix description
  • Loading branch information
lanpa committed Dec 19, 2021
1 parent 054f1f3 commit b9cea7b
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 3 deletions.
4 changes: 4 additions & 0 deletions HISTORY.rst
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
History
=======
2.4.1 (2021-11-20)
-------------------
* Fix a comet plugin bug if writer is reused. (#639)

2.4 (2021-06-30)
-----------------
* Remove a dependency issue. (#631)
Expand Down
5 changes: 2 additions & 3 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ def run(self):
history = history_file.read()

preparing_PyPI_package = 'sdist' in sys.argv or 'bdist_wheel' in sys.argv
version_git = version = '2.4'
version_git = version = '2.4.1'

if not preparing_PyPI_package:
if os.path.exists('.git'):
Expand Down Expand Up @@ -96,5 +96,4 @@ def run(self):
# git commit -m 'prepare for release'
# add tag
# twine upload dist/*
# git push

# git push -u origin HEAD
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 b9cea7b

Please sign in to comment.