diff options
Diffstat (limited to 'mpv-test.py')
-rwxr-xr-x | mpv-test.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mpv-test.py b/mpv-test.py index 14a28a7..f0cabe0 100755 --- a/mpv-test.py +++ b/mpv-test.py @@ -90,7 +90,7 @@ class TestProperties(unittest.TestCase): setattr(self.m, name, 1) setattr(self.m, name, 1.0) setattr(self.m, name, -1.0) - setattr(self.m, name, math.nan) + setattr(self.m, name, float('nan')) elif ptype == str: setattr(self.m, name, 'foo') setattr(self.m, name, '') |