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
12import unittest
23import collections
34from datetime import datetime , timedelta
@@ -12,7 +13,7 @@ def setUp(self):
1213 def test_price_of_a_new_stock_class_should_be_None (self ):
1314 self .assertIsNone (self .goog .price )
1415
15- @unittest .skip ( " skip this test for now " )
16+ @unittest .skipIf ( sys . platform . startswith ( "win" ), " skip on windows " )
1617 def test_stock_update (self ):
1718 """An update should set the price on the stock object
1819
@@ -21,6 +22,7 @@ def test_stock_update(self):
2122 self .goog .update (datetime (2014 , 2 , 12 ), price = 10 )
2223 self .assertEqual (10 , self .goog .price )
2324
25+ @unittest .skipUnless (sys .platform .startswith ("win" ), "only run on windows" )
2426 def test_negative_price_should_throw_ValueError (self ):
2527 with self .assertRaises (ValueError ):
2628 self .goog .update (datetime (2014 , 2 , 13 ), - 1 )
You can’t perform that action at this time.
0 commit comments