Skip to content

0.2.0: pytest based test suite is failing #18

@kloczek

Description

@kloczek
+ PYTHONPATH=/home/tkloczko/rpmbuild/BUILDROOT/python-ipython_genutils-0.2.0-2.fc35.x86_64/usr/lib64/python3.8/site-packages:/home/tkloczko/rpmbuild/BUILDROOT/python-ipython_genutils-0.2.0-2.fc35.x86_64/usr/lib/python3.8/site-packages
+ /usr/bin/python3 -Bm pytest -ra
=========================================================================== test session starts ============================================================================
platform linux -- Python 3.8.8, pytest-6.2.2, py-1.10.0, pluggy-0.13.1
rootdir: /home/tkloczko/rpmbuild/BUILD/ipython_genutils-0.2.0
plugins: flaky-3.6.1, forked-1.3.0, shutil-1.7.0, virtualenv-1.7.0, asyncio-0.14.0, expect-1.1.0, cov-2.11.1, mock-3.5.1, httpbin-1.0.0, xdist-2.2.1, flake8-1.0.7, timeout-1.4.2, betamax-0.8.1, hypothesis-6.8.1, pyfakefs-4.4.0, freezegun-0.4.2
collected 17 items

ipython_genutils/tests/test_importstring.py ...                                                                                                                      [ 17%]
ipython_genutils/tests/test_path.py ..FFFFsF                                                                                                                         [ 64%]
ipython_genutils/tests/test_tempdir.py ..                                                                                                                            [ 76%]
ipython_genutils/tests/test_text.py ....                                                                                                                             [100%]

================================================================================= FAILURES =================================================================================
___________________________________________________________________ TestLinkOrCopy.test_link_successful ____________________________________________________________________

args = (<ipython_genutils.tests.test_path.TestLinkOrCopy object at 0x7f95fc6d3610>,), kwargs = {}

    def skipper_func(*args, **kwargs):
        """Skipper for normal test functions."""
        if skip_val():
            raise nose.SkipTest(get_msg(f,msg))
        else:
>           return f(*args, **kwargs)

ipython_genutils/testing/decorators.py:186:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
ipython_genutils/tests/test_path.py:64: in test_link_successful
    dst = self.dst("target")
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

self = <ipython_genutils.tests.test_path.TestLinkOrCopy object at 0x7f95fc6d3610>, args = ('target',)

    def dst(self, *args):
>       return os.path.join(self.tempdir.name, *args)
E       AttributeError: 'TestLinkOrCopy' object has no attribute 'tempdir'

ipython_genutils/tests/test_path.py:47: AttributeError
____________________________________________________________________ TestLinkOrCopy.test_link_into_dir _____________________________________________________________________

args = (<ipython_genutils.tests.test_path.TestLinkOrCopy object at 0x7f95fc816460>,), kwargs = {}

    def skipper_func(*args, **kwargs):
        """Skipper for normal test functions."""
        if skip_val():
            raise nose.SkipTest(get_msg(f,msg))
        else:
>           return f(*args, **kwargs)

ipython_genutils/testing/decorators.py:186:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
ipython_genutils/tests/test_path.py:70: in test_link_into_dir
    dst = self.dst("some_dir")
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

self = <ipython_genutils.tests.test_path.TestLinkOrCopy object at 0x7f95fc816460>, args = ('some_dir',)

    def dst(self, *args):
>       return os.path.join(self.tempdir.name, *args)
E       AttributeError: 'TestLinkOrCopy' object has no attribute 'tempdir'

ipython_genutils/tests/test_path.py:47: AttributeError
____________________________________________________________________ TestLinkOrCopy.test_target_exists _____________________________________________________________________

args = (<ipython_genutils.tests.test_path.TestLinkOrCopy object at 0x7f95fc6af0a0>,), kwargs = {}

    def skipper_func(*args, **kwargs):
        """Skipper for normal test functions."""
        if skip_val():
            raise nose.SkipTest(get_msg(f,msg))
        else:
>           return f(*args, **kwargs)

ipython_genutils/testing/decorators.py:186:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
ipython_genutils/tests/test_path.py:78: in test_target_exists
    dst = self.dst("target")
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

self = <ipython_genutils.tests.test_path.TestLinkOrCopy object at 0x7f95fc6af0a0>, args = ('target',)

    def dst(self, *args):
>       return os.path.join(self.tempdir.name, *args)
E       AttributeError: 'TestLinkOrCopy' object has no attribute 'tempdir'

ipython_genutils/tests/test_path.py:47: AttributeError
_______________________________________________________________________ TestLinkOrCopy.test_no_link ________________________________________________________________________

args = (<ipython_genutils.tests.test_path.TestLinkOrCopy object at 0x7f95fc80ca30>,), kwargs = {}

    def skipper_func(*args, **kwargs):
        """Skipper for normal test functions."""
        if skip_val():
            raise nose.SkipTest(get_msg(f,msg))
        else:
>           return f(*args, **kwargs)

ipython_genutils/testing/decorators.py:186:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
ipython_genutils/tests/test_path.py:88: in test_no_link
    dst = self.dst("target")
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

self = <ipython_genutils.tests.test_path.TestLinkOrCopy object at 0x7f95fc80ca30>, args = ('target',)

    def dst(self, *args):
>       return os.path.join(self.tempdir.name, *args)
E       AttributeError: 'TestLinkOrCopy' object has no attribute 'tempdir'

ipython_genutils/tests/test_path.py:47: AttributeError
______________________________________________________________________ TestLinkOrCopy.test_link_twice ______________________________________________________________________

self = <ipython_genutils.tests.test_path.TestLinkOrCopy object at 0x7f95fc68c8b0>

    def test_link_twice(self):
        # Linking the same file twice shouldn't leave duplicates around.
        # See https://github.com/ipython/ipython/issues/6450
>       dst = self.dst('target')

ipython_genutils/tests/test_path.py:104:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

self = <ipython_genutils.tests.test_path.TestLinkOrCopy object at 0x7f95fc68c8b0>, args = ('target',)

    def dst(self, *args):
>       return os.path.join(self.tempdir.name, *args)
E       AttributeError: 'TestLinkOrCopy' object has no attribute 'tempdir'

ipython_genutils/tests/test_path.py:47: AttributeError
========================================================================= short test summary info ==========================================================================
SKIPPED [1] ../../../../../usr/lib/python3.8/site-packages/_pytest/unittest.py:355: Skipping test: test_windows. This test only runs under Windows
FAILED ipython_genutils/tests/test_path.py::TestLinkOrCopy::test_link_successful - AttributeError: 'TestLinkOrCopy' object has no attribute 'tempdir'
FAILED ipython_genutils/tests/test_path.py::TestLinkOrCopy::test_link_into_dir - AttributeError: 'TestLinkOrCopy' object has no attribute 'tempdir'
FAILED ipython_genutils/tests/test_path.py::TestLinkOrCopy::test_target_exists - AttributeError: 'TestLinkOrCopy' object has no attribute 'tempdir'
FAILED ipython_genutils/tests/test_path.py::TestLinkOrCopy::test_no_link - AttributeError: 'TestLinkOrCopy' object has no attribute 'tempdir'
FAILED ipython_genutils/tests/test_path.py::TestLinkOrCopy::test_link_twice - AttributeError: 'TestLinkOrCopy' object has no attribute 'tempdir'
================================================================= 5 failed, 11 passed, 1 skipped in 0.25s ==================================================================

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions