From 8578318ffd2b407f6fb0e92fcbe6310b6eee0419 Mon Sep 17 00:00:00 2001 From: Carlos Cordoba Date: Wed, 1 Nov 2017 09:19:02 -0500 Subject: [PATCH] Another try --- .pep8speaks.yml | 2 +- .../widgets/variableexplorer/tests/test_dataframeeditor.py | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/.pep8speaks.yml b/.pep8speaks.yml index f80fb6df92c..78560a2bec9 100644 --- a/.pep8speaks.yml +++ b/.pep8speaks.yml @@ -5,4 +5,4 @@ scanner: pycodestyle: exclude: - - test_*.py # Don't run style checks in test files + - */*test_*.py # Don't run style checks in test files diff --git a/spyder/widgets/variableexplorer/tests/test_dataframeeditor.py b/spyder/widgets/variableexplorer/tests/test_dataframeeditor.py index 6d774b65eaa..73dab5231cb 100644 --- a/spyder/widgets/variableexplorer/tests/test_dataframeeditor.py +++ b/spyder/widgets/variableexplorer/tests/test_dataframeeditor.py @@ -230,7 +230,8 @@ def test_dataframeeditor_with_datetimeindex(): assert data(dfm, 2, 1) == '2015-01-03 00:00:00' -@pytest.mark.skipif(PYQT4, reason="It generates a strange failure in another test") +@pytest.mark.skipif(not os.name == 'nt', + reason="It segfaults too much on Linux") def test_sort_dataframe_with_duplicate_column(qtbot): df = DataFrame({'A': [1, 3, 2], 'B': [4, 6, 5]}) df = concat((df, df.A), axis=1) @@ -246,6 +247,8 @@ def test_sort_dataframe_with_duplicate_column(qtbot): assert [data(dfm, row, 2) for row in range(len(df))] == ['4', '5', '6'] +@pytest.mark.skipif(not os.name == 'nt', + reason="It segfaults too much on Linux") def test_sort_dataframe_with_category_dtypes(qtbot): # cf. issue 5361 df = DataFrame({'A': [1, 2, 3, 4], 'B': ['a', 'b', 'c', 'd']})