Commit Graph

3 Commits

Author SHA1 Message Date
Jerry Zhang
54aac4af1f Update hypothesis_utils.py (#33739)
Summary:
A typo..
Pull Request resolved: https://github.com/pytorch/pytorch/pull/33739

Differential Revision: D20088096

Pulled By: jerryzh168

fbshipit-source-id: d8b5d263c25f8c779698607be87bf76aca1811ab
2020-02-24 20:56:42 -08:00
Raghuraman Krishnamoorthi
0e29e9e0f6 Re-enable internal test runs
Summary:
Fix internal error message due to old version of hypothesis
   test_suite = self.load_tests()
  File "/data/sandcastle/boxes/eden-trunk-hg-fbcode-fbsource/fbcode/buck-out/dev/gen/caffe2/test/quantization#binary,link-tree/__fb_test_main__.py", line 678, in load_tests
    suite = loader.load_all()
  File "/data/sandcastle/boxes/eden-trunk-hg-fbcode-fbsource/fbcode/buck-out/dev/gen/caffe2/test/quantization#binary,link-tree/__fb_test_main__.py", line 467, in load_all
    __import__(module_name, level=0)
  File "/data/sandcastle/boxes/eden-trunk-hg-fbcode-fbsource/fbcode/buck-out/dev/gen/caffe2/test/quantization#binary,link-tree/test_quantization.py", line 45, in <module>
    hu.assert_deadline_disabled()
  File "/data/sandcastle/boxes/eden-trunk-hg-fbcode-fbsource/fbcode/buck-out/dev/gen/caffe2/test/quantization#binary,link-tree/torch/testing/_internal/hypothesis_utils.py", line 322, in assert_deadline_disabled
    assert settings().deadline is None
  File "/data/sandcastle/boxes/eden-trunk-hg-fbcode-fbsource/fbcode/buck-out/dev/gen/caffe2/test/quantization#binary,link-tree/hypothesis/_settings.py", line 127, in __getattr__
    raise AttributeError('settings has no attribute %s' % (name,))
AttributeError: settings has no attribute deadline

Test Plan: buck test mode/dev //caffe2/test:quantization -- --run-disabled runs successfully

Differential Revision: D19795232

fbshipit-source-id: ef1d8be20b4be30e1cfad4cd5019c4779a5f4568
2020-02-07 18:08:18 -08:00
Pritam Damania
f050b16dd9 Move pytorch distributed tests to separate folder for contbuild. (#30445)
Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/30445

Create distributed and rpc directories under caffe/test for better management
of unit tests.

Differential Revision: D18702786

fbshipit-source-id: e9daeed0cfb846ef68806f6decfcb57c0e0e3606
2020-01-22 21:16:59 -08:00