summarylogtreecommitdiffstats
path: root/0133-smoketests-update.patch
blob: 0178d817dfe3707321a23ffe06a2104731c62760 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
From 61c5a4a14932539b31878de0b60bc98bcba791b9 Mon Sep 17 00:00:00 2001
From: Christoph Reiter <reiter.christoph@gmail.com>
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