History

python/tests/test_fvec.py: avoid import

Paul Brossier committed 10 years ago

Commit 0df6e9e1 parent 1ad9dc31 file · +1 −2Browse files

Showing the changes to python (1 of 1 file). Show all

Unified · Split

python/tests/test_fvec.py+1−2
@@ -61,8 +61,7 @@ class aubio_fvec_test_case(TestCase): · 60 unmodified lines
6161 a[1] = 1
6262 self.assertEqual (alpha_norm(a, 1), 1)
6363 a = array([0, 1], dtype=float_type)
64− from math import sqrt
65− assert_almost_equal (alpha_norm(a, 2), sqrt(2)/2.)
64+ assert_almost_equal (alpha_norm(a, 2), .5*2.**.5)
6665
6766 def test_alpha_norm_of_none(self):
6867 self.assertRaises (ValueError, alpha_norm, None, 1)

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t