Skip to content

Commit

Permalink
test: Skip failing test on GitHub Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
jpmckinney committed Oct 18, 2023
1 parent b7b5dc1 commit 75e8fc1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 2 additions & 2 deletions agate/table/to_csv.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ def to_csv(self, path, **kwargs):
Write this table to a CSV. This method uses agate's builtin CSV writer,
which supports unicode on both Python 2 and Python 3.
`kwargs` will be passed through to the CSV writer.
``kwargs`` will be passed through to the CSV writer.
The ``lineterminator`` defaults to the newline character (LF, ``\n``).
The ``lineterminator`` defaults to the newline character (LF, ``\\n``).
:param path:
Filepath or file-like object to write to.
Expand Down
4 changes: 4 additions & 0 deletions tests/test_py3.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
import csv
import os
import platform
import sys
import unittest
from io import StringIO

Expand Down Expand Up @@ -231,6 +233,8 @@ def test_writerows(self):


class TestSniffer(unittest.TestCase):
# macos-latest 3.10 fails on GitHub Actions.
@unittest.skipIf(platform.system() == 'Darwin' and sys.version_info[:2] == (3, 10))
def test_sniffer(self):
with open('examples/test.csv', encoding='utf-8') as f:
contents = f.read()
Expand Down

0 comments on commit 75e8fc1

Please sign in to comment.