]> gitweb.factorcode.org Git - factor.git/commitdiff
python.syntax: just assert sys.path is not empty
authorJohn Benediktsson <mrjbq7@gmail.com>
Wed, 19 Jan 2022 23:04:08 +0000 (15:04 -0800)
committerJohn Benediktsson <mrjbq7@gmail.com>
Wed, 19 Jan 2022 23:04:08 +0000 (15:04 -0800)
extra/python/syntax/syntax-tests.factor

index 3c5d70378dd66f12cf75329288a46d041e83148a..49a80a88efbb08d5f383e0d7278a2541782d1f70 100644 (file)
@@ -27,7 +27,7 @@ IN: python.syntax.tests
 ! Module variables are bound as zero-arg functions
 { t } [ $path py> s:sequence? ] py-test
 
-{ t } [ $path len int py> 5 > ] py-test
+{ t } [ $path py> empty? not ] py-test
 
 [ 10 ] [ 10 >py range len py> ] py-test