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
Test on pypy2/3 plus irrelevant bug on tests discovered by the build #24
Conversation
Good catch on the tests and thanks for adding PyPy. My intuition is that what behavior you are seeing is related to how I did the initial implementation of generators from #17 on PR looks good to go though. |
Test on pypy2/3 plus irrelevant bug on tests discovered by the build
Would you mind making an issue with a code example of what is breaking? I am trying to reproduce with no luck. |
Try this, it results in an empty set. diff --git a/test/test_functional.py b/test/test_functional.py
index 78a0342..149dfe2 100644
--- a/test/test_functional.py
+++ b/test/test_functional.py
@@ -222,7 +222,7 @@ class TestChain(unittest.TestCase):
result = seq([1, 1, 2, 3, 3]).union([1, 4, 5])
expect = [1, 2, 3, 4, 5]
self.assert_type(result)
- self.assertSetEqual(result.set(), set(expect))
+ self.assertSetEqual(set(result), set(expect))
|
Also, I noticed that the same pattern for dicts (not using assertDictEqual) so I pushed once more. |
I run the same thing without errors, might running on |
Ya, I just installed |
No need for PR formalities for a follow up committed so soon :). |
Made an issue after some extensive debugging at #25 |
Tests succeed on pypy2/3 (thus added to travis)
except for some tests on sets
that were accidentally written as deterministic.
(I fixed them in the same PR to keep the build clean)
By the way,
while
set(seq('abc'))
gives the expected in the shell,in tests I get an empty set and can only use .the
set()
method.Probably
assertSetEqual(result, set(expected))
doesn't work for the same reason.Looks to me like a bug you may want to investigate.