diff options
author | jaseg <git@jaseg.net> | 2016-11-23 10:20:49 +0100 |
---|---|---|
committer | jaseg <git@jaseg.net> | 2016-11-23 10:20:49 +0100 |
commit | eb8b6a05d75a5abb55205f9859ce6f4223735946 (patch) | |
tree | d3e7605b3fce84ba332136fc5e930ff905916ca5 /mpv-test.py | |
parent | efbf182723299e7edfe70dfd8b536419628fbc2a (diff) | |
download | python-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-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, '') |