summaryrefslogtreecommitdiffstats
path: root/Lib/test
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/test')
-rw-r--r--Lib/test/reperf.py2
-rw-r--r--Lib/test/test_curses.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/Lib/test/reperf.py b/Lib/test/reperf.py
index 6ad9a08..68ac40f 100644
--- a/Lib/test/reperf.py
+++ b/Lib/test/reperf.py
@@ -12,7 +12,7 @@ def timefunc(n, func, *args, **kw):
t0 = time.clock()
try:
for i in range(n):
- result = apply(func, args, kw)
+ result = func(*args, **kw)
return result
finally:
t1 = time.clock()
diff --git a/Lib/test/test_curses.py b/Lib/test/test_curses.py
index f32dbf3..188da8d 100644
--- a/Lib/test/test_curses.py
+++ b/Lib/test/test_curses.py
@@ -26,7 +26,7 @@ def window_funcs(stdscr):
for meth in [stdscr.addch, stdscr.addstr]:
for args in [('a'), ('a', curses.A_BOLD),
(4,4, 'a'), (5,5, 'a', curses.A_BOLD)]:
- apply(meth, args)
+ meth(*args)
for meth in [stdscr.box, stdscr.clear, stdscr.clrtobot,
stdscr.clrtoeol, stdscr.cursyncup, stdscr.delch,