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

unit test test_father fails with python2 #7

Closed
morxa opened this issue Jan 15, 2017 · 2 comments
Closed

unit test test_father fails with python2 #7

morxa opened this issue Jan 15, 2017 · 2 comments

Comments

@morxa
Copy link

morxa commented Jan 15, 2017

The unit test test_father fails:

$ cd test
$ ./runtests
............F....
======================================================================
FAIL: test_father (test_examples.TestExamples)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "test_examples.py", line 137, in test_father
    self.assertEqual(len(result), 1)
AssertionError: 4 != 1

----------------------------------------------------------------------
Ran 17 tests in 5.313s

FAILED (failures=1)

When looking at the result, it contains the same result four times:

[{'Y': 'mich', 'Z': 'jane'}, {'Y': 'mich', 'Z': 'jane'}, {'Y': 'mich', 'Z': 'jane'}, {'Y': 'mich', 'Z': 'jane'}]

This is with commit 72771d9 and SWI-Prolog 7.2.3 on Fedora 25.

@morxa
Copy link
Author

morxa commented Jan 15, 2017

This occurs only when using Python2, runtests3 works as expected:

$ ./runtests3
.................
----------------------------------------------------------------------
Ran 17 tests in 5.383s

OK

@morxa morxa changed the title unit test test_father fails unit test test_father fails with python2 Jan 15, 2017
@yuce
Copy link
Owner

yuce commented May 24, 2018

This is fixed on master branch.

@yuce yuce closed this as completed May 24, 2018
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

2 participants