File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ import sys
2+
13import pytest
24import progressbar
35
@@ -94,6 +96,9 @@ def test_deprecated_poll():
9496 progressbar .ProgressBar (poll = 5 )
9597
9698
99+ @pytest .mark .skipif (sys .platform == "win32" ,
100+ reason = "resolution of timer is expected to be on windows "
101+ "lower" )
97102def test_unexpected_update_keyword_arg ():
98103 p = progressbar .ProgressBar (max_value = 10 )
99104 with pytest .raises (TypeError ):
Original file line number Diff line number Diff line change 1- import progressbar
1+ import sys
22from datetime import timedelta
33
4+ import pytest
5+ import progressbar
6+
47
58def test_poll_interval ():
69 # Test int, float and timedelta intervals
@@ -21,6 +24,9 @@ def test_poll_interval():
2124 assert bar .poll_interval .microseconds < 1001
2225
2326
27+ @pytest .mark .skipif (sys .platform == "win32" ,
28+ reason = "resolution of timer is expected to be on windows "
29+ "lower" )
2430def test_intervals ():
2531 bar = progressbar .ProgressBar (max_value = 100 )
2632 bar ._MINIMUM_UPDATE_INTERVAL = 1
You can’t perform that action at this time.
0 commit comments