Skip to content

Commit af6d4d4

Browse files
committed
breaking s2gs test on a WoL s2gs
1 parent ac1e114 commit af6d4d4

File tree

3 files changed

+15
-1
lines changed

3 files changed

+15
-1
lines changed

sc2reader/scripts/sc2parse.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ def main():
4343
replay = sc2reader.load_replay(path, debug=True, load_level=1)
4444
if not args.one_each or replay.is_ladder:
4545
replay = sc2reader.load_replay(path, debug=True)
46-
print 'No problems with {build} - {real_type} on {map_name} - Played {start_time}'.format(**replay.__dict__)
46+
print 'No problems with {path}: {build} - {real_type} on {map_name} - Played {start_time}'.format(path=path, **replay.__dict__)
4747
except sc2reader.exceptions.ReadError as e:
4848
if args.ladder_only and not e.replay.is_ladder: continue
4949

test_s2gs/s2gs1.s2gs

8.56 KB
Binary file not shown.

test_s2gs/test_all_s2gs.py

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# Encoding: UTF-8
2+
3+
# Run tests with "py.test" in the project root dir
4+
import os, sys
5+
import pytest
6+
import datetime
7+
8+
sys.path.insert(0, os.path.normpath(os.path.join(os.path.dirname(os.path.abspath(__file__)),"../")))
9+
10+
import sc2reader
11+
from sc2reader.exceptions import ParseError
12+
13+
def test_an_s2gs():
14+
summary = sc2reader.load_game_summary("test_s2gs/s2gs1.s2gs")

0 commit comments

Comments
 (0)