Skip to content

Commit 253aa69

Browse files
committed
Only run subset of tests from setup.py test
The setuptools invocation of the tests does not put the test metadata in place, so almost all of the tests fail. Only run a few, real metadata-based, tests instead.
1 parent 6686d64 commit 253aa69

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

python/setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@
6464
url='https://github.com/daviddrysdale/python-phonenumbers',
6565
license='Apache License 2.0',
6666
packages=pkgs,
67-
test_suite="tests",
67+
test_suite="tests.examplenumberstest",
6868
platforms='Posix; MacOS X; Windows',
6969
classifiers=['Development Status :: 5 - Production/Stable',
7070
'Intended Audience :: Developers',

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
packages=['phonenumbers', 'phonenumbers.data', 'phonenumbers.geodata', 'phonenumbers.shortdata',
4646
'phonenumbers.carrierdata', 'phonenumbers.tzdata'],
4747
package_dir={'': 'python'},
48-
test_suite="tests",
48+
test_suite="tests.examplenumberstest",
4949
platforms='Posix; MacOS X; Windows',
5050
classifiers=['Development Status :: 5 - Production/Stable',
5151
'Intended Audience :: Developers',

0 commit comments

Comments
 (0)