summaryrefslogtreecommitdiff
path: root/mpv-test.py
diff options
context:
space:
mode:
authorjaseg <git@jaseg.net>2016-11-23 10:20:49 +0100
committerjaseg <git@jaseg.net>2016-11-23 10:20:49 +0100
commiteb8b6a05d75a5abb55205f9859ce6f4223735946 (patch)
treed3e7605b3fce84ba332136fc5e930ff905916ca5 /mpv-test.py
parentefbf182723299e7edfe70dfd8b536419628fbc2a (diff)
downloadpython-mpv-eb8b6a05d75a5abb55205f9859ce6f4223735946.tar.gz
python-mpv-eb8b6a05d75a5abb55205f9859ce6f4223735946.tar.bz2
python-mpv-eb8b6a05d75a5abb55205f9859ce6f4223735946.zip
Clarify event thread handling in the README
Diffstat (limited to 'mpv-test.py')
-rwxr-xr-xmpv-test.py2
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, '')