-
Notifications
You must be signed in to change notification settings - Fork 313
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #705 from insanum/win32_unicode
Fix import and agendaupdate to handle encoding errors more gracefully
- Loading branch information
Showing
3 changed files
with
12 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,7 +6,6 @@ | |
from json import load | ||
import re | ||
|
||
import pytest | ||
from dateutil.tz import tzutc | ||
|
||
from gcalcli.argparsers import ( | ||
|
@@ -274,14 +273,11 @@ def test_modify_event(PatchedGCalI): | |
gcal._edit_event, opts.text, opts.start, opts.end) == 0 | ||
|
||
|
||
@pytest.mark.skipif( | ||
os.name == 'nt', | ||
reason='Known unicode encode/decode issue, see insanum/gcalcli#387.') | ||
def test_import(PatchedGCalI): | ||
cal_names = parse_cal_names(['[email protected]']) | ||
gcal = PatchedGCalI(cal_names=cal_names, default_reminders=True) | ||
vcal_path = TEST_DATA_DIR + '/vv.txt' | ||
assert gcal.ImportICS(icsFile=open(vcal_path)) | ||
assert gcal.ImportICS(icsFile=open(vcal_path, errors='replace')) | ||
|
||
|
||
def test_parse_reminder(): | ||
|