Skip to content

Commit

Permalink
Update test_brainpy_deprecations.py
Browse files Browse the repository at this point in the history
  • Loading branch information
ztqakita committed Jun 27, 2023
1 parent c73efe8 commit e63956e
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions brainpy/_src/tests/test_brainpy_deprecations.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
mode_deprecated_names = list(brainpy.modes.__deprecations.keys())
tools_deprecated_names = list(brainpy.tools.__deprecations.keys())
train_deprecated_names = list(brainpy.train.__deprecations.keys())
dyn_deprecated_names = list(brainpy.dyn.__deprecations.keys())
# dyn_deprecated_names = list(brainpy.dyn.__deprecations.keys())
intg_deprecated_names = list(brainpy.integrators.__deprecations.keys())

io_deprecated_names = list(brainpy.base.io.__deprecations.keys())
Expand Down Expand Up @@ -40,13 +40,13 @@ def test_brainpy_train(self, name):
with self.assertWarns(DeprecationWarning):
getattr(brainpy.train, name)

@parameterized.product(
name=dyn_deprecated_names
)
def test_brainpy_dyn(self, name):
with self.assertWarns(DeprecationWarning):
getattr(brainpy.dyn, name)

# @parameterized.product(
# name=dyn_deprecated_names
# )
# def test_brainpy_dyn(self, name):
# with self.assertWarns(DeprecationWarning):
# getattr(brainpy.dyn, name)
#
@parameterized.product(
name=intg_deprecated_names
)
Expand Down

0 comments on commit e63956e

Please sign in to comment.