moreati / ppeg

A Python port of Lua's LPeg pattern matching library
MIT License
6 stars 2 forks source link

Pattern equality tests fail intermittantly #1

Closed moreati closed 9 years ago

moreati commented 9 years ago
platform linux2 -- Python 2.7.10, pytest-2.8.2, py-1.4.30, pluggy-0.3.1
rootdir: /home/alex/src/ppeg, inifile: pytest.ini
collected 82 items 

tests/lpeg_test.py ............
tests/pattern_test.py ..F...................................................................

=================================== FAILURES ===================================
___________________________ TestEquivalents.testany ____________________________

self = <pattern_test.TestEquivalents testMethod=testany>

    def testany(self):
        self.assertEqual(P(1), P.Any(1))
>       self.assertEqual(P(1000), P.Any(1000))
E       AssertionError: <_ppeg.Pattern object at 0x7ff51843a638> != <_ppeg.Pattern object at 0x7ff51843a680>

tests/pattern_test.py:37: AssertionError
===================== 1 failed, 81 passed in 0.65 seconds ======================
ERROR: InvocationError: '/home/alex/src/ppeg/.tox/py27/bin/py.test'