Skip to content

Commit

Permalink
Merge pull request #112 from wolever/version-0.8.0
Browse files Browse the repository at this point in the history
Version 0.8.0
  • Loading branch information
wolever authored Jan 4, 2021
2 parents d685cc7 + 23e182b commit 4727f53
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 4 deletions.
14 changes: 14 additions & 0 deletions CHANGELOG.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,20 @@
0.8.0 (2021-01-04)
* Handle camelCase test names. This is an ever-so-slightly backwards
incompatible change, as the method for determining which methods are
test methods has changed from ``method_name.startswith("test_")`` to
``method_name.startswith("test")``. The latter is the behavior of
the ``unittest`` module.
(thanks @bobwalker99; https://github.com/wolever/parameterized/pull/106)
* Fix arguments to skip_on_empty helper (thanks @bhavyakjain;
https://github.com/wolever/parameterized/pull/104)

0.7.5 (2021-01-04)
* Fix crash on Python 2.7 with unicode docstrings
(https://github.com/wolever/parameterized/issues/109)
* Replace inspect.stack() with faster inspect.currentframe()
(https://github.com/wolever/parameterized/issues/107)
* Add a __version__ string to the package
(https://github.com/wolever/parameterized/issues/103)

0.7.4 (2020-04-14)
* Add ``class_name_func`` option to ``@parameterized_class``
Expand Down
2 changes: 2 additions & 0 deletions parameterized/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
from .parameterized import parameterized, param, parameterized_class

__version__ = "0.8.0"
4 changes: 1 addition & 3 deletions parameterized/parameterized.py
Original file line number Diff line number Diff line change
Expand Up @@ -495,9 +495,7 @@ def expand(cls, input, name_func=None, doc_func=None, skip_on_empty=False,
name_func = name_func or default_name_func

def parameterized_expand_wrapper(f, instance=None):
stack = inspect.stack()
frame = stack[1]
frame_locals = frame[0].f_locals
frame_locals = inspect.currentframe().f_back.f_locals

parameters = cls.input_as_callable(input)()

Expand Down
4 changes: 3 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@

from setuptools import setup, find_packages

import parameterized

os.chdir(os.path.dirname(sys.argv[0]) or ".")

try:
Expand All @@ -15,7 +17,7 @@

setup(
name="parameterized",
version="0.7.4",
version=parameterized.__version__,
url="https://github.com/wolever/parameterized",
license="FreeBSD",
author="David Wolever",
Expand Down

0 comments on commit 4727f53

Please sign in to comment.