Skip to content

test_qsturng.test_all_to_tbl skipped with "remove from testsuite" comment #5766

Open

Description

@jbrockmendel
    #remove from testsuite, used only for table generation and fails on
    #Debian S390, no idea why
    @pytest.mark.skip
    def test_all_to_tbl(self):
        from statsmodels.stats.libqsturng.make_tbls import T,R
        ps, rs, vs, qs = [], [], [], []
        for p in T:
            for v in T[p]:
                for r in iterkeys(R):
                    ps.append(p)
                    vs.append(v)
                    rs.append(r)
                    qs.append(T[p][v][R[r]])

        qs = np.array(qs)
        errors = np.abs(qs-qsturng(ps,rs,vs))/qs
        assert_equal(np.array([]), np.where(errors > .03)[0])

What do we make of this "remove from testsuite" comment? Should we enable the test and conditionally xfail on Debian S390 like we did for the lme test on OSX?

Activity

  1. josef-pkt commented on May 21, 2019

    @josef-pkt
    Member

    No just skip it.

    • this is included 3rd party code where we only make minimal changes (I mentioned that already once before)
    • the comment is from the original author, so I'm not sure what it could do
      • there is no meaningful assert
      • the comment says that this was only used to generate the tables
      • I never bothered to look at the details of the unit tests in qsturng.
        We have a few additional unit tests that use it, AFAIR
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions