From 61c5a4a14932539b31878de0b60bc98bcba791b9 Mon Sep 17 00:00:00 2001 From: Christoph Reiter Date: Sun, 1 Aug 2021 18:48:43 +0200 Subject: [PATCH 133/N] smoketests: update --- mingw_smoketests.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/mingw_smoketests.py b/mingw_smoketests.py index 3f41855..0b99c88 100644 --- a/mingw_smoketests.py +++ b/mingw_smoketests.py @@ -57,6 +57,13 @@ class Tests(unittest.TestCase): self.assertFalse(hasattr(sys, 'getdlopenflags')) self.assertFalse([n for n in dir(os) if n.startswith("RTLD_")]) + def test_time_no_unix_stuff(self): + import time + self.assertFalse([n for n in dir(time) if n.startswith("clock_")]) + self.assertFalse([n for n in dir(time) if n.startswith("CLOCK_")]) + self.assertFalse([n for n in dir(time) if n.startswith("pthread_")]) + self.assertFalse(hasattr(time, 'tzset')) + def test_strftime(self): import time with self.assertRaises(ValueError): -- 2.32.0