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

Failing tests on Python 2.7 #19

Open
carlosperate opened this issue May 1, 2019 · 0 comments · May be fixed by #36
Open

Failing tests on Python 2.7 #19

carlosperate opened this issue May 1, 2019 · 0 comments · May be fixed by #36

Comments

@carlosperate
Copy link
Contributor

carlosperate commented May 1, 2019

I've rebased PR #15 with the latest master and got the results updated on Travis set up for my fork:
https://travis-ci.org/carlosperate/microfs/builds/526947291

There is an issue running the tests on Python 2.7:
https://travis-ci.org/carlosperate/microfs/jobs/526947292

============================= test session starts ==============================
platform linux2 -- Python 2.7.15, pytest-4.3.1, py-1.7.0, pluggy-0.8.0
rootdir: /home/travis/build/carlosperate/microfs, inifile:
plugins: cov-2.6.1
collected 40 items                                                             
tests/test_microfs.py ....F...................................           [100%]
=================================== FAILURES ===================================
__________________ test_raw_on_failures_command_line_flag_on ___________________
    def test_raw_on_failures_command_line_flag_on():
        """
        If the COMMAND_LINE_FLAG is True, ensure the last data received is output
        via the print statemen for debugging purposes.
        """
>       with mock.patch('builtins.print') as mock_print, \
tests/test_microfs.py:161: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
../../../virtualenv/python2.7.15/lib/python2.7/site-packages/mock/mock.py:1353: in __enter__
    self.target = self.getter()
../../../virtualenv/python2.7.15/lib/python2.7/site-packages/mock/mock.py:1523: in <lambda>
    getter = lambda: _importer(target)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
target = 'builtins'
    def _importer(target):
        components = target.split('.')
        import_path = components.pop(0)
>       thing = __import__(import_path)
E       ImportError: No module named builtins
../../../virtualenv/python2.7.15/lib/python2.7/site-packages/mock/mock.py:1206: ImportError
---------- coverage: platform linux2, python 2.7.15-final-0 ----------
Name         Stmts   Miss  Cover   Missing
------------------------------------------
microfs.py     176      1    99%   71
===================== 1 failed, 39 passed in 1.46 seconds ======================
Makefile:36: recipe for target 'coverage' failed
make: *** [coverage] Error 1
The command "make check" exited with 2.

Don't have the time to look into this right now, so logging here to look into later, or in case somebody else wants to give this a go :)

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

Successfully merging a pull request may close this issue.

1 participant