File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change
1
+ import sys
1
2
import unittest
2
3
import collections
3
4
from datetime import datetime , timedelta
@@ -12,7 +13,7 @@ def setUp(self):
12
13
def test_price_of_a_new_stock_class_should_be_None (self ):
13
14
self .assertIsNone (self .goog .price )
14
15
15
- @unittest .skip ( " skip this test for now " )
16
+ @unittest .skipIf ( sys . platform . startswith ( "win" ), " skip on windows " )
16
17
def test_stock_update (self ):
17
18
"""An update should set the price on the stock object
18
19
@@ -21,6 +22,7 @@ def test_stock_update(self):
21
22
self .goog .update (datetime (2014 , 2 , 12 ), price = 10 )
22
23
self .assertEqual (10 , self .goog .price )
23
24
25
+ @unittest .skipUnless (sys .platform .startswith ("win" ), "only run on windows" )
24
26
def test_negative_price_should_throw_ValueError (self ):
25
27
with self .assertRaises (ValueError ):
26
28
self .goog .update (datetime (2014 , 2 , 13 ), - 1 )
You can’t perform that action at this time.
0 commit comments