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

test_sector_exposure test breaks in Python 3 #202

Closed
twiecki opened this issue Nov 11, 2015 · 1 comment
Closed

test_sector_exposure test breaks in Python 3 #202

twiecki opened this issue Nov 11, 2015 · 1 comment
Assignees
Milestone

Comments

@twiecki
Copy link
Contributor

twiecki commented Nov 11, 2015

>nosetests --pdb tests/
..[1] > /home/wiecki/working/projects/quant/pyfolio/pyfolio/tests/test_pos.py(118)test_sector_exposure()
-> self.assertEqual(len(w), 0)
   4 frames hidden (try 'help hidden_frames')
(Pdb++) c
F.............................................
======================================================================
FAIL: [with positions=            0  1  2  cash
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/wiecki/miniconda3/lib/python3.4/site-packages/nose_parameterized/parameterized.py", line 365, in standalone_func
    return func(*(a + p.args), **p.kwargs)
  File "/home/wiecki/working/projects/quant/pyfolio/pyfolio/tests/test_pos.py", line 118, in test_sector_exposure
    self.assertEqual(len(w), 0)
AssertionError: 1 != 0

----------------------------------------------------------------------
Ran 48 tests in 2.377s

FAILED (failures=1)

@acampbell22 I think you wrote that test, would you mind taking a look?

@a-campbell
Copy link
Contributor

Tacked the fix onto this PR: #201

@twiecki twiecki closed this as completed Nov 16, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants