Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
chaoming0625 committed Aug 23, 2024
1 parent f48ac46 commit fed268a
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions brainunit/_base_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@
# limitations under the License.
# ==============================================================================


import os

os.environ['JAX_TRACEBACK_FILTERING'] = 'off'
import itertools
import unittest
import warnings
Expand Down Expand Up @@ -262,10 +266,9 @@ def test_display2(self):
def f(s):
a = bu.ms ** s
print(a)
return a
return bu.Quantity(1., unit=a)

with self.assertRaises(jax.errors.TracerBoolConversionError):
f(2)
f(2)

def test_unary_operations(self):
q = Quantity(5, unit=mV)
Expand Down

0 comments on commit fed268a

Please sign in to comment.