]> gitweb.factorcode.org Git - factor.git/commitdiff
python: the os module is considerably smaller on windows
authorBjörn Lindqvist <bjourne@gmail.com>
Tue, 28 Jan 2014 11:14:35 +0000 (12:14 +0100)
committerJohn Benediktsson <mrjbq7@gmail.com>
Tue, 4 Mar 2014 17:23:03 +0000 (09:23 -0800)
extra/python/python-tests.factor

index b757dbb79030f4ad6c5434345cd437b1128848fd..7bf73f413e4aa2d7d99aaea98e259f2f340011d4 100644 (file)
@@ -113,7 +113,9 @@ SYMBOLS: year month day ;
 ] py-test
 
 ! Modules
-[ t ] [ "os" import PyModule_GetDict py-dict-size 200 > ] py-test
+[ t ] [
+    "os" import PyModule_GetDict dup Py_IncRef &Py_DecRef py-dict-size 100 >
+] py-test
 
 ! Reference counting tests
 [ 2 ] [ 3 <py-tuple> getrefcount >factor ] py-test