Commits

Brian Curtin committed af01b4e

Adjust the tests to not depend on sleep, and actually work in release mode.

  • Participants
  • Parent commits aad230d

Comments (0)

Files changed (1)

File tests/test_options.py

         print(self.dir)
 
     def tearDown(self):
+        return
         shutil.rmtree(self.dir)
 
     def test_custom_name(self):
         subprocess.Popen([sys.executable, "-c",
                           "import minidumper, tester;"
                           "minidumper.enable(name='custom', dir=r'{}');"
-                          "tester.divide_by_zero()".format(self.dir)])
-        time.sleep(1)
+                          "tester.access_violation()".format(self.dir)]).wait()
+
         self.assertIn("custom", [x[:6] for x in os.listdir(self.dir)])
 
     def test_mdmp_size(self):
             subprocess.Popen([sys.executable, "-c",
                               "import minidumper, tester;"
                               "minidumper.enable(type={}, dir=r'{}');"
-                              "tester.divide_by_zero()".format(
-                                                        type, self.dir)])
-            time.sleep(1)
+                              "tester.access_violation()".format(
+                                                    type, self.dir)]).wait()
+
 
         contents = os.listdir(self.dir)
         self.assertEqual(2, len(contents))