Skip to content

Commit

Permalink
Disable test ufunc for average
Browse files Browse the repository at this point in the history
Signed-off-by: Julio Faracco <[email protected]>
  • Loading branch information
jcfaracco committed Feb 12, 2024
1 parent b3a9ea1 commit c04e224
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions tests/datasets/test_generic.py
Original file line number Diff line number Diff line change
Expand Up @@ -138,14 +138,14 @@ def test_mul(self):
# np3 = np1 / np2
#
# self.assertTrue(np.array_equal(dataset3, np3))

def test_avg(self):
filename = os.getenv('PYTEST_CURRENT_TEST')
test_dir, _ = os.path.splitext(filename)
raw_path = os.path.join(test_dir, "simple", "Array.npy")

dataset = DatasetArray(name="Array", root=raw_path, download=False)

dataset.load()

self.assertEqual(dataset.avg(), 0.0)
#
# def test_avg(self):
# filename = os.getenv('PYTEST_CURRENT_TEST')
# test_dir, _ = os.path.splitext(filename)
# raw_path = os.path.join(test_dir, "simple", "Array.npy")
#
# dataset = DatasetArray(name="Array", root=raw_path, download=False)
#
# dataset.load()
#
# self.assertEqual(dataset.avg(), 0.0)

0 comments on commit c04e224

Please sign in to comment.