Permalink
Browse files

python compatibility stuff

  • Loading branch information...
1 parent ba7cc5d commit 106a3f953c1407fc9d93a098523427097d9f31ce @davidhalter committed Oct 23, 2012
Showing with 7 additions and 8 deletions.
  1. +7 −8 test/regression.py
View
@@ -211,14 +211,14 @@ def wrapper(self):
for i in range(number):
func(self)
single_time = (time.time() - first) / number
- print func, single_time
+ print(func, single_time)
assert single_time < time_per_run
return wrapper
return decorated
- @unittest.skip('not used yet')
+ # skip by removing test
@_check_speed(0.1)
- def test_os_path_join(self):
+ def _test_os_path_join(self):
s = "from posixpath import join; join('', '')."
assert len(self.complete(s)) > 10 # is a str completion
@@ -227,15 +227,14 @@ def test_2(self):
s = 'from scipy.weave import inline; inline('
self.get_in_function_call(s)
- @unittest.skip('not used yet')
- @unittest.expectedFailure
+ #@unittest.expectedFailure
@_check_speed(0.6, number=1)
- def test_new(self):
+ def _test_new(self):
s = 'import scipy.weave; scipy.weave.inline('
api.set_debug_function(api.debug.print_to_stdout)
- #print self.get_in_function_call(s)
+ #print(self.get_in_function_call(s))
api.set_debug_function(None)
- #print api.imports.imports_processed
+ #print(api.imports.imports_processed)
if __name__ == '__main__':

0 comments on commit 106a3f9

Please sign in to comment.