@pytest.mark.parametrize('expression,output', [('3.0', '3'), ('3e0', '3'), ('1e3', '1000'), ('3', '3.0'), ('3.1', '3.0'), ('3.1', '3.2'), ('3.1', '4.0'), ('8.22e5', '810000.0'), ('3.0', '2.98'), ('1e3', '999'), pytest.param("'3.1416'", "'3.14'", marks=pytest.mark.xfail)])
def test_number_non_matches(self, testdir, expression, output):
    testdir.maketxtfile(test_doc='\n            >>> {expression} #doctest: +NUMBER\n            {output}\n            '.format(expression=expression, output=output))
    reprec = testdir.inline_run()
    reprec.assertoutcome(passed=0, failed=1)
@pytest.mark.parametrize('expression,output', [('3.0', '3'), ('3e0', '3'), ('1e3', '1000'), ('3', '3.0'), ('3.1', '3.0'), ('3.1', '3.2'), ('3.1', '4.0'), ('8.22e5', '810000.0'), ('3.0', '2.98'), ('1e3', '999'), pytest.param("'3.1416'", "'3.14'", marks=pytest.mark.xfail)])
def test_number_non_matches(self, testdir, expression, output):
    testdir.maketxtfile(test_doc='\n            >>> {expression} #doctest: +NUMBER\n            {output}\n            '.format(expression=expression, output=output))
    reprec = testdir.inline_run()
    reprec.assertoutcome(passed=0, failed=1)