Browse Source

Merge branch 'master' of https://github.com/sjourdois/pygal into sjourdois-master

pull/290/head
Florian Mounier 9 years ago
parent
commit
daa18fe242
  1. 2
      docs/changelog.rst
  2. 3
      pygal/test/test_graph.py
  3. 2
      setup.py

2
docs/changelog.rst

@ -6,7 +6,7 @@ Changelog
================
* Add `dynamic_print_values` to show print_values on legend hover. (Fix #279)
* Fix unparse_color for python 3.5+ compatibility (thanks felixonmars)
* Fix unparse_color for python 3.5+ compatibility (thanks felixonmars, sjourdois)
2.0.8

3
pygal/test/test_graph.py

@ -24,6 +24,7 @@ import pygal
import uuid
import sys
import pytest
import io
from pygal.graph.map import BaseMap
from pygal.util import cut
from pygal._compat import u
@ -53,7 +54,7 @@ def test_render_to_file(Chart, datas):
chart = Chart()
chart = make_data(chart, datas)
chart.render_to_file(file_name)
with open(file_name) as f:
with io.open(file_name, encoding="utf-8") as f:
assert 'pygal' in f.read()
os.remove(file_name)

2
setup.py

@ -28,7 +28,7 @@ from setuptools.command.test import test as TestCommand
class PyTest(TestCommand):
def finalize_options(self):
TestCommand.finalize_options(self)
self.test_args = []
self.test_args = ['-x', 'build/lib/pygal']
self.test_suite = True
def run_tests(self):

Loading…
Cancel
Save