File tree Expand file tree Collapse file tree 3 files changed +17
-2
lines changed Expand file tree Collapse file tree 3 files changed +17
-2
lines changed Original file line number Diff line number Diff line change 5
5
- pypy
6
6
install :
7
7
- python setup.py install
8
+ - pip install unittest2
8
9
script :
9
10
- python test_replays/test_all.py
10
11
- python test_s2gs/test_all.py
12
+ branches :
13
+ only :
14
+ - master
11
15
notifications :
12
16
irc : " chat.freenode.net#sc2reader"
Original file line number Diff line number Diff line change 2
2
3
3
import datetime
4
4
import json
5
- import unittest
5
+
6
+ # Newer unittest features aren't built in for python 2.6
7
+ import sys
8
+ if sys .version_info [:2 ] <= (2 , 7 ):
9
+ import unittest2 as unittest
10
+ else :
11
+ import unittest
6
12
7
13
import sc2reader
8
14
sc2reader .log_utils .log_to_console ("INFO" )
Original file line number Diff line number Diff line change 1
1
# -*- coding: UTF-8 -*-
2
2
3
- import unittest
3
+ # Newer unittest features aren't built in for python 2.6
4
+ import sys
5
+ if sys .version_info [:2 ] <= (2 , 7 ):
6
+ import unittest2 as unittest
7
+ else :
8
+ import unittest
4
9
5
10
import sc2reader
6
11
sc2reader .log_utils .log_to_console ("INFO" )
You can’t perform that action at this time.
0 commit comments