[Python-checkins] python/nondist/sandbox/twister test_random.py,1.10,1.11

tim_one@users.sourceforge.net tim_one@users.sourceforge.net
Sun, 29 Dec 2002 12:26:58 -0800


Update of /cvsroot/python/python/nondist/sandbox/twister
In directory sc8-pr-cvs1:/tmp/cvs-serv29420

Modified Files:
	test_random.py 
Log Message:
There's really no need for setUp() methods here -- the generator to
be tested can be a simple class attribute instead.


Index: test_random.py
===================================================================
RCS file: /cvsroot/python/python/nondist/sandbox/twister/test_random.py,v
retrieving revision 1.10
retrieving revision 1.11
diff -C2 -d -r1.10 -r1.11
*** test_random.py	29 Dec 2002 18:02:01 -0000	1.10
--- test_random.py	29 Dec 2002 20:26:56 -0000	1.11
***************
*** 67,72 ****
  
  class WichmannHill_TestBasicOps(TestBasicOps):
!     def setUp(self):
!         self.gen = random.WichmannHill()
  
      def test_strong_jumpahead(self):
--- 67,71 ----
  
  class WichmannHill_TestBasicOps(TestBasicOps):
!     gen = random.WichmannHill()
  
      def test_strong_jumpahead(self):
***************
*** 84,89 ****
  
  class MersenneTwister_TestBasicOps(TestBasicOps):
!     def setUp(self):
!         self.gen = random.Random()
  
      def test_referenceImplementation(self):
--- 83,87 ----
  
  class MersenneTwister_TestBasicOps(TestBasicOps):
!     gen = random.Random()
  
      def test_referenceImplementation(self):