Skip to content

remove str support from JArray __class_getitem__

Azure Pipelines / jpype.build failed Sep 9, 2024 in 9m 3s

Build #20240909.3 had test failures

Details

Tests

  • Failed: 1 (0.00%)
  • Passed: 18,104 (82.93%)
  • Other: 3,725 (17.06%)
  • Total: 21,830
Code coverage

  • 2121 of 2298 line covered (92.30%)

Annotations

Check failure on line 1869 in Build log

See this annotation in the file changed.

@azure-pipelines azure-pipelines / jpype.build

Build log #L1869

Cmd.exe exited with code '1'.

Check failure on line 1 in testArrayInitFromNPFloat16

See this annotation in the file changed.

@azure-pipelines azure-pipelines / jpype.build

testArrayInitFromNPFloat16

AssertionError: np.float16(5.84e-05) != 6.097555160522461e-05 within 7 places (np.float64(2.562999725341797e-06) difference)
Raw output
self = <test_jfloat.JFloatTestCase testMethod=testArrayInitFromNPFloat16>

    def f(self):
        try:
            import numpy
>           return func(self)

test\jpypetest\common.py:64: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
test\jpypetest\test_jfloat.py:388: in testArrayInitFromNPFloat16
    self.assertElementsAlmostEqual(a, jarr)
test\jpypetest\common.py:142: in assertElementsAlmostEqual
    self.assertAlmostEqual(a[i], b[i])
E   AssertionError: np.float16(5.84e-05) != 6.097555160522461e-05 within 7 places (np.float64(2.562999725341797e-06) difference)