File tree Expand file tree Collapse file tree 1 file changed +1
-38
lines changed
Expand file tree Collapse file tree 1 file changed +1
-38
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments