Skip to content

Commit c5d8d7e

Browse files
committed
removed benchmark test in favor of profile.py
1 parent ef99b78 commit c5d8d7e

File tree

1 file changed

+1
-38
lines changed

1 file changed

+1
-38
lines changed

test_replays/test_all.py

Lines changed: 1 addition & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -96,41 +96,4 @@ def test_1():
9696
assert replay.messages[11].player.name == "Boom"
9797

9898
for msg in replay.messages:
99-
assert sent_to_all(msg) == True
100-
101-
# Uncathegorized tests
102-
"""
103-
# I don't think we need this code anymore - see the profile.py tool
104-
105-
def proxy():
106-
file_list = []
107-
rootdir = "test_replays/"
108-
for root, sub_folders, files in os.walk(rootdir):
109-
for file in files:
110-
if (os.path.splitext(file)[1].lower() == ".sc2replay"):
111-
file_list.append(os.path.join(root,file))
112-
113-
for file in file_list:
114-
try:
115-
replay = Replay(file)
116-
except ValueError as e:
117-
print e
118-
except ParseError as e:
119-
print e
120-
121-
# Is there a way to print things out when a test passes? pytest seems to ignore
122-
# Stdout when tests are passing.
123-
124-
# Do we need to use a proxy function to use timeit? Also, timeit doesn't seem to
125-
# find proxy() for some reason.
126-
127-
# timeit over other python time functions, because it should provide more consistent results
128-
# across different platforms.
129-
# http://docs.python.org/library/timeit.html
130-
def test_performace():
131-
132-
t = Timer("proxy()")
133-
print t.timeit()
134-
135-
assert 1 == 0
136-
"""
99+
assert sent_to_all(msg) == True

0 commit comments

Comments
 (0)