Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failed test with Python 3.8 #18

Closed
jorti opened this issue Jul 13, 2019 · 0 comments
Closed

Failed test with Python 3.8 #18

jorti opened this issue Jul 13, 2019 · 0 comments

Comments

@jorti
Copy link

jorti commented Jul 13, 2019

This test is failing with Python 3.8


=================================== FAILURES ===================================
____________________________ TestDebug.test_rebulk _____________________________

self = <rebulk.test.test_debug.TestDebug object at 0x7f5ead51dfa0>

    def test_rebulk(self):
        """
        This test fails on travis CI, can't find out why there's 1 line offset ...
        """
        assert self.rebulk._patterns[0].defined_at.lineno in [26, 27]
        assert self.rebulk._patterns[0].defined_at.name == 'rebulk.test.test_debug'
        assert self.rebulk._patterns[0].defined_at.filename.endswith('test_debug.py')
    
        assert str(self.rebulk._patterns[0].defined_at) in ['test_debug.py#L26', 'test_debug.py#L27']
    
>       assert self.rebulk._patterns[1].defined_at.lineno in [27, 28]
E       AssertionError: assert 26 in [27, 28]
E        +  where 26 = test_debug.py#L26.lineno
E        +    where test_debug.py#L26 = <StringPattern@test_debug.py#L26:('is',)>.defined_at

rebulk/test/test_debug.py:73: AssertionError
===================== 1 failed, 162 passed in 1.38 seconds =====================
@Toilal Toilal closed this as completed in e9e8956 Aug 12, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant