Skip to content

Commit

Permalink
Test for Adam Miller
Browse files Browse the repository at this point in the history
  • Loading branch information
adrienverge committed Feb 25, 2016
1 parent 73d9322 commit 94a1033
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/test_spec_examples.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.

from io import open
import os

from tests.common import RuleTestCase
Expand Down Expand Up @@ -178,7 +179,7 @@ def test(self):
if file in pyyaml_blacklist:
continue

with open('tests/yaml-1.2-spec-examples/' + file) as f:
with open('tests/yaml-1.2-spec-examples/' + file, encoding='utf-8') as f:
conf = conf_general + conf_overrides.get(file, '')
setattr(SpecificationTestCase, 'test_' + file,
_gen_test(f.read(), conf))

0 comments on commit 94a1033

Please sign in to comment.