Skip to content

Commit

Permalink
don't test po files on appveyor
Browse files Browse the repository at this point in the history
  • Loading branch information
mfrasca committed Nov 18, 2018
1 parent b8f9aa0 commit 534317c
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion bauble/test/test_po.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
logger.setLevel(logging.DEBUG)

import re
from babel.messages.pofile import read_po
import unittest
import glob
import os
Expand All @@ -34,6 +33,12 @@ def test_same_keys(self):
parts = __file__.split(os.path.sep)[:-3]
po_dir = os.path.sep.join(parts)
files = glob.glob(os.path.join(po_dir, 'po', '*.po'))
try:
from babel.messages.pofile import read_po
except:
from nose import SkipTest
raise SkipTest("don't test on appveyor")

for filename in files:
catalog = read_po(open(filename))
for msg in catalog:
Expand Down

0 comments on commit 534317c

Please sign in to comment.