File tree Expand file tree Collapse file tree 3 files changed +10
-4
lines changed Expand file tree Collapse file tree 3 files changed +10
-4
lines changed Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ install:
28
28
- pip install --verbose .
29
29
# command to run tests
30
30
script :
31
- - python tests/rundoctest.py
31
+ - make check
32
32
- (cd docs && make html)
33
33
cache :
34
34
directories :
Original file line number Diff line number Diff line change @@ -12,9 +12,12 @@ build:
12
12
install :
13
13
$(PIP ) install --no-index --ignore-installed .
14
14
15
+ check :
16
+ $(PYTHON ) tests/rundoctest.py
17
+
15
18
dist :
16
19
chmod go+rX-w -R .
17
20
umask 0022 && $(PYTHON ) setup.py sdist --formats=gztar
18
21
19
22
20
- .PHONY : build install dist
23
+ .PHONY : build install check dist
Original file line number Diff line number Diff line change 2
2
3
3
import os
4
4
import sys
5
- import cypari2
6
- import doctest
7
5
8
6
# Autogen tests must be run in the root dir, and with the proper module path
9
7
path = os .path .abspath (os .path .join (os .path .dirname (__file__ ), os .path .pardir ))
10
8
os .chdir (path )
11
9
sys .path .append (path )
12
10
import autogen
11
+ import cypari2
12
+ import doctest
13
+
14
+ # The doctests assume utf-8 encoding
15
+ cypari2 .string_utils .encoding = "utf-8"
13
16
14
17
failed = 0
15
18
attempted = 0
You can’t perform that action at this time.
0 commit comments