]> granicus.if.org Git - python/commitdiff
this was supposed to die
authorBenjamin Peterson <benjamin@python.org>
Tue, 21 Feb 2012 03:33:33 +0000 (22:33 -0500)
committerBenjamin Peterson <benjamin@python.org>
Tue, 21 Feb 2012 03:33:33 +0000 (22:33 -0500)
Lib/test/test_compiler.py
Lib/test/test_os.py

index 332e0bbf698f03eeea37e0b615c40dd95d8f102a..459881170394f1840e77dd261243d96332687861 100644 (file)
@@ -28,8 +28,8 @@ class CompilerTest(unittest.TestCase):
         libdir = os.path.dirname(os.__file__)
         testdir = os.path.dirname(test.test_support.__file__)
 
-        for dir in [libdir, testdir]:
-            for basename in os.listdir(dir):
+        for dir in [testdir]:
+            for basename in "test_os.py",:
                 # Print still working message since this test can be really slow
                 if next_time <= time.time():
                     next_time = time.time() + _PRINT_WORKING_MSG_INTERVAL
index d52b78462e437d1f6d2d94757bbdaef129945f12..1268fa362232df7604dfd9a83ea7a18b3f2f010b 100644 (file)
@@ -527,19 +527,6 @@ class DevNullTests (unittest.TestCase):
         f.close()
 
 class URandomTests (unittest.TestCase):
-    def test_urandom(self):
-        try:
-            self.assertEqual(len(os.urandom(1)), 1)
-            self.assertEqual(len(os.urandom(10)), 10)
-            self.assertEqual(len(os.urandom(100)), 100)
-            self.assertEqual(len(os.urandom(1000)), 1000)
-            # see http://bugs.python.org/issue3708
-            self.assertRaises(TypeError, os.urandom, 0.9)
-            self.assertRaises(TypeError, os.urandom, 1.1)
-            self.assertRaises(TypeError, os.urandom, 2.0)
-            self.assertEqual(len(os.urandom(0.9)), 0)
-            self.assertEqual(len(os.urandom(1.1)), 1)
-            self.assertEqual(len(os.urandom(2.0)), 2)
 
     def test_urandom_length(self):
         self.assertEqual(len(os.urandom(0)), 0)
@@ -571,7 +558,6 @@ class URandomTests (unittest.TestCase):
         data1 = self.get_urandom_subprocess(16)
         data2 = self.get_urandom_subprocess(16)
         self.assertNotEqual(data1, data2)
->>>>>>> other
 
     def test_execvpe_with_bad_arglist(self):
         self.assertRaises(ValueError, os.execvpe, 'notepad', [], None)