hbmartin commited on
Commit
846239d
·
1 Parent(s): edef73e

version bump

Browse files
Files changed (2) hide show
  1. pytube/version.py +1 -1
  2. tests/test_main.py +2 -2
pytube/version.py CHANGED
@@ -1,4 +1,4 @@
1
- __version__ = "9.5.8"
2
 
3
  if __name__ == "__main__":
4
  print(__version__)
 
1
+ __version__ = "9.5.9"
2
 
3
  if __name__ == "__main__":
4
  print(__version__)
tests/test_main.py CHANGED
@@ -8,8 +8,8 @@ from pytube.exceptions import VideoUnavailable
8
 
9
 
10
  @mock.patch("pytube.__main__.YouTube")
11
- def test_prefetch_deferred(MockYouTube):
12
- instance = MockYouTube.return_value
13
  instance.prefetch_descramble.return_value = None
14
  YouTube("https://www.youtube.com/watch?v=9bZkp7q19f0", True)
15
  assert not instance.prefetch_descramble.called
 
8
 
9
 
10
  @mock.patch("pytube.__main__.YouTube")
11
+ def test_prefetch_deferred(youtube):
12
+ instance = youtube.return_value
13
  instance.prefetch_descramble.return_value = None
14
  YouTube("https://www.youtube.com/watch?v=9bZkp7q19f0", True)
15
  assert not instance.prefetch_descramble.called